I just received a bug report this morning of users trying to paste text from plain text documents into the TinyMCE editor, but having all the line breaks removed. The users all seem to be using Google Chrome.
I didn't believe it at first, but when I try it - they're right. If I have the following text in (for example) Notepad:
This is a paragraph This is a paragraph This is a paragraph
In Firefox and IE, the line breaks get inserted as expected:
This is a paragraph <br/> This is a paragraph <br/> This is a paragraph
But in Chrome, nothing. The lines just get appended to one another:
This is a paragraphThis is a paragraphThis is a paragraph
Trying this on the demo page of the TinyMCE website doesn't exhibit the same behaviour - so it must be something related to the version of TinyMCE used in Umbraco.
Has anyone else experienced this issue? I've played around with the force_p_newlines, convert_newlines_to_brs properties, etc - to no avail.
I want to think it's a Chrome bug, but it's working in the new version of TinyMCE so surely it can't be?
But if you go to http://www.tinymce.com/tryit/full.php, it doesn't happen - so I don't think it's something to do with Chrome entirely. I think the version of TinyMCE in Umbraco does something which causes it to happen. So there must be a way around it.
I've got the same issue. A simple workaround is to paste your plain text directly into the HTML view, then save and use the richtext editor to add paragraphs, etc. But not exactly ideal.
Any tiny mce gurus aware of any settings we could use to sort this?
Hold on a second, how the devil are you getting it to use `br` breaks? Usually just rapes my content with 'empty' paragraphs (that aren't really actually empty, because, well, there's another fundamental flaw: it won't handle literally empty tags!), i.e. `<p> </p>`.
Having the same issue. In Firefox thing work fine, pasting from Notepad results in text wrapped in p-tag and using br-tags. In Chrome pasting from Notepad results in text wrapped in pre-tag and using br-tags. Other than disallowing pre-tags have anyone found a solution?
Chrome, TinyMCE, and Line Breaks
I just received a bug report this morning of users trying to paste text from plain text documents into the TinyMCE editor, but having all the line breaks removed. The users all seem to be using Google Chrome.
I didn't believe it at first, but when I try it - they're right. If I have the following text in (for example) Notepad:
This is a paragraph
This is a paragraph
This is a paragraph
In Firefox and IE, the line breaks get inserted as expected:
This is a paragraph
<br/>
This is a paragraph
<br/>
This is a paragraph
But in Chrome, nothing. The lines just get appended to one another:
This is a paragraphThis is a paragraphThis is a paragraph
Trying this on the demo page of the TinyMCE website doesn't exhibit the same behaviour - so it must be something related to the version of TinyMCE used in Umbraco.
Has anyone else experienced this issue? I've played around with the force_p_newlines, convert_newlines_to_brs properties, etc - to no avail.
I want to think it's a Chrome bug, but it's working in the new version of TinyMCE so surely it can't be?
Incidentally, pasting from Word works fine - so it must be specific to plain text.
I can confirm this - for some reason Chrome actually wraps the entire pasted text in a <pre> tag so you get this mark-up:
Glad someone else has confirmed it - thanks Dan.
But if you go to http://www.tinymce.com/tryit/full.php, it doesn't happen - so I don't think it's something to do with Chrome entirely. I think the version of TinyMCE in Umbraco does something which causes it to happen. So there must be a way around it.
Anyone have any ideas?
I've got the same issue. A simple workaround is to paste your plain text directly into the HTML view, then save and use the richtext editor to add paragraphs, etc. But not exactly ideal.
Any tiny mce gurus aware of any settings we could use to sort this?
Thanks,
David
Hold on a second, how the devil are you getting it to use `br` breaks? Usually just rapes my content with 'empty' paragraphs (that aren't really actually empty, because, well, there's another fundamental flaw: it won't handle literally empty tags!), i.e. `<p> </p>`.
I have problems with Umbraco 6.1.6, and Google Chrome
can't create line break with shift+enter, it is created span style = "line-height: 1.428571429;", not br
with firefox br is normaly created
Having the same issue. In Firefox thing work fine, pasting from Notepad results in text wrapped in p-tag and using br-tags. In Chrome pasting from Notepad results in text wrapped in pre-tag and using br-tags. Other than disallowing pre-tags have anyone found a solution?
is working on a reply...