If you create a node without the TinyMCE editor and then subsequently edit the node with the TinyMCE, the line and paragraph breaks created with the "Line break converter" get wiped out. I end up with a long, unreadable stretch of text with no paragraph or line breaks.

I've tried creating a special input filters but that didn't seem to solve the problem. I'll consider this a bug unless someone can point me in the right direction.

Comments

yunusyb’s picture

Select "Full HTML" under 'Input Format'. This fixed the line and paragraph breaks problem for me.

desi6ner’s picture

Priority: Normal » Critical

Seems like one have to select "Full HTML" instead of " Filtered HTML" or else the line breaks does not work properly. This is a critical bug. I cannot expect my editors to select this format every thime a new entry is posted. Really hope someone comes up with a fix with this soon!

Besides that I really like the module a lot!

desi6ner’s picture

Seems like one have to select "Full HTML" instead of " Filtered HTML" or else the line breaks does not work properly. This is a critical bug. I cannot expect my editors to select this format every thime a new entry is posted. Really hope someone comes up with a fix with this soon!

Besides that I really like the module a lot!

desi6ner’s picture

Priority: Critical » Normal

Another way to handle this problem is to edit the "Filtered HTML" itself - but there migth still be the tinymce that's buggy..

mygumbo’s picture

Content initially entered with Full HTML, line break converter on. TinyMCE doesn't show line breaks or paragraphs. Changed input formats, tried Full HTML (line break converter on and off), Rich Text Editing (with no filters), still the same problem. Without a fix, TinyMCE is unusable for my users.

Josh Willmarth’s picture

Title: Doesn't handle line and paragraph breaks created with "Line break converter" » Set full html as default

Selecting full html worked for me. If you don't want to have to select full html each time you add a post, go into administer >> input formats and make full html the default input format.

Steve Dondley’s picture

Title: Set full html as default » Doesn't handle line and paragraph breaks created with "Line break converter"

Please don't change the name of the topic.

Setting to full html by default is a huge security hole.

whereisian’s picture

I have the same problem.

Drupal 4.7
Tinymce 2.0.6
php 4.3.9
apache 2.0.52
mysql 4.1.20

I thought it might be because mysql is using utf8, but changing it didn't make a difference. I've tried filtered, unfiltered, php input formats, using new nodes, existing nodes. HTML output is always one line and not very readable.

Similar story on the tinyMCE forums, but no answers there either: http://tinymce.moxiecode.com/punbb/viewtopic.php?id=1635

I would love a fix for this.

yched’s picture

Have you checked <p> and <br> tags are allowed in "filtered HTML" filter settings ?

alexandreracine’s picture

Yeap. The comment #9 seems to correct this. Thanks.

Could this be added to the documentation instead of the suggestion to put "full html" ?

alexandreracine’s picture

Setting to full html by default is a huge security hole.

In the documentation, you recommend to put full html ;)

steveg430’s picture

underlining the fact that #9 is correct:

my tiny was losing its line breaks and the smiley emotions were failing to appear

so i went to:
http://yoursitename.com/?q=admin/filters/1/configure

and entered


in the allowed html tags in html filter

also i added Only local images are allowed. as an allowed tag to get the emtions smiley to appear

i would like to think that other items not appearing that come to light from useage can be cured by adding the appropriate tag as above

:)

Rudolf-1’s picture

Adding break and paragraph tags to Filtered HTML as well as switching to Full HTML introduces a non-breaking space wrapped in paragraph tags between any two paragraphs. This is just too weird typographically.

whereisian’s picture

Perhaps I was in the wrong post. I found my solution here. My output is now nicely formatted and not just a glob of code.

http://drupal.org/node/80851

Cheers

andremolnar’s picture

If you can't wait for the patch at http://drupal.org/node/80851 to be committed, and want to do a quick hack.

Add the following at line 114 of tinyMCE.module

$settings[] = "apply_source_formatting : true";

Works like a charm

andre

patchak’s picture

Hi,

Is this small patch relative to the drupal 5 version of the module? Also, I'm not sure if there are not two issues here... My problem is that when I edit a node that was created before enabling tinymce, the line breaks that were created with the filtered html input format are not applied anymore and the text is presented as a really big blob...

So I guess my questions are :
1) is this patch going to fix my problem
2) was the patch re-rolled for the current version of tinymce?

Thanks

ricmadeira’s picture

patchak,

That tiny patch line was only for 4.7. If you're using 5.1, check to see if you have the following configurations enabled:

Remove linebreaks: FALSE
Apply source formatting: TRUE

If that doesn't work, check if you have FULL HTML enabled for the text. If it still doesn't work, welcome to my problem. Try this patch I'm proposing, and if works for you please ask for it's implementation:

http://drupal.org/node/151939

alexandreracine’s picture

Status: Active » Closed (won't fix)

Cleaning...