wysiwyg editor: stop automatic insert of p tag

basic functions and we:tags
pms
Junior Member
Beiträge: 17
Registriert: So 20. Feb 2011, 17:07

wysiwyg editor: stop automatic insert of p tag

Beitragvon pms » Do 4. Jun 2015, 14:17

After updating from We 6.3.8 to 4.1 we are having this problem:

All published objects are fine.
But when you enter the textarea content of an object, p tags are put around every line of exsting, unformatted text.
Is there a way to prevent this?

Thanx in advance!

mokraemer
Senior Member
Beiträge: 3619
Registriert: So 8. Aug 2010, 01:23
Wohnort: Mainz

Re: wysiwyg editor: stop automatic insert of p tag

Beitragvon mokraemer » Fr 5. Jun 2015, 00:52

only for the first line, by setting "removefirstparagraph".
The editor - as all other texteditors - distinguish between line-break (Shift-Enter) and new paragraphs (Enter).
webEdition-Kern-Entwickler

pms
Junior Member
Beiträge: 17
Registriert: So 20. Feb 2011, 17:07

Re: wysiwyg editor: stop automatic insert of p tag

Beitragvon pms » Fr 5. Jun 2015, 17:06

mokraemer hat geschrieben:The editor - as all other texteditors - distinguish between line-break (Shift-Enter) and new paragraphs (Enter).
Thanks for your answer.
The existing (never edited in 6.4.1) content, Original saved in version 6.3, does not have the p tags in the content.
On the moment you edit them in 6.4.1, the p tags are visible in the source and published.

Old visible in source published page:

Code: Alles auswählen

<br />
text text text 
<h1>title</h1>
text text text text
text text text text text. 
<br />
After opening it in the 4.1 wysiwyg editor and publish:

Code: Alles auswählen

<br /><p>text text text</p><h1>title</title><p>text text text text</p><p>text text text text text.</p><br />
Any explanation for this effect?

mokraemer
Senior Member
Beiträge: 3619
Registriert: So 8. Aug 2010, 01:23
Wohnort: Mainz

Re: wysiwyg editor: stop automatic insert of p tag

Beitragvon mokraemer » So 7. Jun 2015, 17:39

yepp,
for formating reasons etc. every text has to be contained in an element.
The default tag for this is the p-tag.
webEdition-Kern-Entwickler


Zurück zu „Creating templates“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste