We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43810
    • 62 Posts
    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.]
      • 28042 ☆ 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.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 43810
        • 62 Posts
        Quote from: sottwell at Jan 03, 2015, 09:35 AM
        Look through the system settings for tinymce. I'm pretty sure there's a setting for having newlines be p or br.

        There is a "Convert Newlines to BRs | tiny.convert_newlines_to_brs" and the default setting of "No" for it. But it is to no avail. It does not work or means something else. [ed. note: viener last edited this post 11 years, 8 months ago.]
          • 43810
          • 62 Posts
          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.
            • 43810
            • 62 Posts
            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.
              • 43810
              • 62 Posts
              The question is not solved, but it has produced a next one: https://forums.modx.com/thread/95695/create-new-setting-for-a-tinymce-plugin-option