In Evolution 1.0.14 adding / pasting as plain text:
Text about something line one
Text about something line two
Results into:
<p>Text about something line one</p>
<p>Text about something line two</p>
Right now in Revolution 2.3.2 adding / pasting as plain text:
Text about something line one
Text about something line two
Results into:
<p>Text about something line one"<"br /">"Text about something line two</p>
(less-than and greater-than are without "" in real case, surely)
-- How can one change it to be like in the Evolution TinyMCE?
[ed. note: viener last edited this post 11 years, 8 months ago.]
-
☆ A M B ☆
- 24,524 Posts
Look through the system settings for tinymce. I'm pretty sure there's a setting for having newlines be p or br.
I have tried it also with MODX Revolution 2.3.1 and 2.3.0, TinyMCE as the only package installed - still the same problem.
I seem to have found where it is set. It is the paste plugin of TinyMCE and the paste_text_linebreaktype plugin option.
Now it is set to "combined" in assets/components/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js . It has to be set to "p" to have the same behavior as in Evolution.
I can edit editor_plugin.js and it works. But I would like to know how it is meant to be done in a proper way. That is to be the next question.