By PlanBForOpenOffice on
Hi there,
I saw a strange behavior on my new Drupal site.
I posted a story that does contain html of the following structure:
<table>
...
</table>
<p>....</p>
When I posted that with the plain text editor it got wrapped into
<div id="content"><p>
<table>
...
</table>
<p>...</p>
</p></div>
Which off course is not valid HTML and does render horribly.
Interestingly, when I wrapped the whole thing in </p>...<p> to produce empty paragraphs before and after the actual content, then I did get
<div id="content"></p><p>
<table>
...
</table>
<p>....</p>
???</div>
Also interestingly, when I use the fckEditor, it all works beautifully.
Remember I do set the document type to "Full HTML" and it only happens in the ascii text area - editor.
Is this a bug? Where would I look to fix this?
Kind regards,
Kaj
Comments
perhaps you enabled the
perhaps you enabled the "Line break converter" filter for the "Full HTML" input format? if so, then the line breaks in your textarea would be converted to <p> tags when the page is rendered.
check at admin -> site configuration -> input formats -> configure Full HTML
Why would that differ between cfkEditor and plain text?
Hi Andi,
good suggestion, I had "Line Break converter" enabled, which makes no sense what so ever.
However, why would that make a difference with cfkEditor or ASCII text area input?
And why would that put a
at the beginning of the content, where the first is the table-tag, no space or new-line in front of it?
Kaj
Chief Screencast Wrangler at Plan-B for OpenOffice.org
I have the same problem
I keep getting the paragraph ('p') tag translated to ascii so it actually gets displayed as
<p>when viewing the content in non-editing version. When I look at the source, this is why: the 'p' tag is rendered</b></p>.I'm using tinymce, could that be doing it or the filter module? I've tried unchecking the Line break converter in the filter settings and resubmitting the node but it doesn't make a difference. I've tried deleting the 'p' tags in html mode when editing and it keeps adding it back, even when the Line break converter is disabled.