Seite 1 von 1

wysiwyg editor: stop automatic insert of p tag

Verfasst: Do 4. Jun 2015, 14:17
von pms
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!

Re: wysiwyg editor: stop automatic insert of p tag

Verfasst: Fr 5. Jun 2015, 00:52
von mokraemer
only for the first line, by setting "removefirstparagraph".
The editor - as all other texteditors - distinguish between line-break (Shift-Enter) and new paragraphs (Enter).

Re: wysiwyg editor: stop automatic insert of p tag

Verfasst: Fr 5. Jun 2015, 17:06
von pms
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?

Re: wysiwyg editor: stop automatic insert of p tag

Verfasst: So 7. Jun 2015, 17:39
von mokraemer
yepp,
for formating reasons etc. every text has to be contained in an element.
The default tag for this is the p-tag.