Doesn't handle line and paragraph breaks created with "Line break converter"

Steve Dondley - May 17, 2006 - 15:27
Project:TinyMCE
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

yunusyb - May 19, 2006 - 12:18

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

#2

desi6ner - May 24, 2006 - 20:14
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!

#3

desi6ner - May 24, 2006 - 20:14

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!

#4

desi6ner - May 25, 2006 - 05:30
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..

#5

mygumbo - June 6, 2006 - 16:22

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.

#6

Josh Willmarth - June 26, 2006 - 05:27
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.

#7

Steve Dondley - June 26, 2006 - 14:57
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.

#8

whereisian - June 27, 2006 - 19:46

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.

#9

yched - June 27, 2006 - 20:08

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

#10

alexandreracine - July 3, 2006 - 16:30

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

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

#11

alexandreracine - July 3, 2006 - 16:31

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

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

#12

steveg430 - July 28, 2006 - 08:18

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 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

:)

#13

Rudolf - August 13, 2006 - 20:48

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.

#14

whereisian - August 29, 2006 - 08:18

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

#15

andremolnar - November 30, 2006 - 18:42

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

#16

patchak - June 9, 2007 - 20:06

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

#17

ricmadeira - June 15, 2007 - 01:10

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

 
 

Drupal is a registered trademark of Dries Buytaert.