TinyMCE inserting line breaks into some list items
Jamroom Developers
Could be the same thing
@strumelia, What is happening is the HTML code when looked at in the < > button will read like this:
<h1>some big text</h1><p>then some small text</p>
TinyMCE will kindly reformat that so that its more readable
<h1>some big text</h1>
<p>then some small text</p>
and jamroom will go "Oh, you want an extra line in there and add a BR".
What we need as a solution is a way to tell tinymce to format the HTML code without those new lines when it save it. Its fine to have those new lines there when your reading it, but if it would kindly remove then when it saves them, that would be great.
The way to request that used to be by adding:
according to:
http://archive.tinymce.com/wiki.php/Configuration3x:remove_linebreaks
But that is for version 3 of TinyMCE and no longer appears to work for version 4.
We're not the only ones asking this question though:
http://community.tinymce.com/forum/viewtopic.php?id=35596
Quote: I have looked for the answer and I have tried various suggestions. Nothing is working.
I need to store the source HTML without CRLF before and after the paragraph tags. The config parameter 'remove_linebreaks' did not help me.
I need to store the source HTML like this:
not like this:
I have tried various suggestions and I have looked through the TinyMCE source js. I can't find the js code that forces the CRLF around paragraph tags, and none of the config suggestions have worked. Can anyone help? Thank you.
But nobody seams to have the answer