When editing everything seems ok, but after submitting the article is without line- and paragraph breaks, as shown here:
http://www.forsakrad.se/d/node/6

Please, can anyone explain what have I done wrong?
Tomas

Comments

drupalnesia’s picture

You're asking this question because you don't read the INSTALL.TXT, this file described why your content loose the line and paragragh break.

WhiplashInfo’s picture

I may be stupid, but I haven't found the answer in the INSTALL.TXT.

thenicespider - could you please pin-point to me where I find the paragraph I have missed?

JohnNoc-old’s picture

well...i am not an expert...i am also in the process of experimenting on the capabilities of tinymce.

when tinymce generates html automatically, there are no spaces in the html.

eg.

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus imperdiet.</p><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus imperdiet.<br />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus imperdiet.</p>

Assuming you have the standard set-up with the filters, the "Filtered HTML" filter strips off all the p and br generated by tinymce. Second, it checks for line breaks so the filter can add its own p and br which the filter cannot find.

Even if you change the order of the filters, it's of no help because tinymce does not generate line breaks between its generated paragraphs.

Simply put...add p and br on the list of allowed html tags.

But what i did were:

  • I disabled the filter: Lines and Paragraphs break automatically.
  • Set the "Show disable/enable rich text editor toggle" to "false" in the Basic Setup at /admin/settings/tinymce/edit/profilename
  • Added the html button in the Buttons and Plugins at /admin/settings/tinymce/edit/profilename
  • and most importantly,,,I added the p and br tags in the list of allowed html tags in the filtered html.

well...if others have better ideas on a work-around, i am all ears!

PS. It's also wiser to preview your content first....so you can deal with the problem before publishing content :-)
Tip: go to /admin/settings/node and require previewing of nodes.

WhiplashInfo’s picture

I will test your suggestions, but I always use preview, but the strange thing is that the preview display lies, and says that everything is OK - but in fact it isn't.

Tomas

JohnNoc-old’s picture

well...it depends on which preview you mean.....the preview button of tinymce will not show the effects of the filters you set in the filter module.... the preview button under the textarea will. :-)

if you set the preview to be required at /admin/settings/node then you don't have a choice but to preview content before publishing it.

ha en fin helg!

lambert-1’s picture

Any ideas?

On FF/Mac OS X, both preview and post work fine.

On IE7, post works, but preview strips line breaks.

Any ideas?

(Yes, P and BR are OK by Filtered HTML.