We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53742
    • 24 Posts
    Hello.
    I am looking for a Normal Rich Text Editor for MODX.

    1. 'TinyMCE' does not work for editing Template Variables of 'Rich Text' Type. For TVs: it shows the editor's buttons but it is not working, the content is blank and text area is neither selectable nor editable.

    2. 'TinyMCE Rich Text Editor' can edit TVs but when i insert something into HTML code it renames it into something weird. An example:
    I insert:
    <p><span class="wave_white_start"></span></p>

    it renames it into:
    <p>&nbsp;</p>


    Is there any normal Rich Text Editor which can edit TVs, edit HTML source code and be a visual editor (WYSIWYG) ?

    Thanks.

      • 4172
      • 5,888 Posts
      what is a normal Rich Text Editor?

      I think your issues are configuration - issues.

      Here are two more RTEs:

      https://modx.com/extras/package/tinymcewrapperdiy, which is highly configurable

      and there is

      https://www.modmore.com/redactor/
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 17301
        • 932 Posts
        As Bruno commented above ^

        Sounds like there is a better way to achieve what you're trying to do. ie: if its just an empty span that is inserted simply for styling purposes then it may be better to consider using a psuedo selector in CSS or even a chunk to toggle this style on or off with a TV.

        If you're trying to give your client the option to insert a visual element then you can setup different formats in a dropdown in the rich text editor by following the documentation. You may find that you're better off using <div>'s rather than <span>'s though in that instance.
          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 53742
          • 24 Posts
          Quote from: Bruno17 at Nov 30, 2017, 01:02 PM
          what is a normal Rich Text Editor?
          any normal Rich Text Editor which can edit TVs, edit HTML source code and be a visual editor (WYSIWYG)

          I think your issues are configuration - issues.
          what am i doing wrong? i thought that 'TinyMCE' and 'TinyMCE R.T.E.' should work after their installation. What should i configure and where?

          my current system settings:
          'use_editor' = 'yes'
          'which_editor' = <editor>
          'which_element_editor' = <editor>

          what have not i done?
            • 53742
            • 24 Posts
            Quote from: lkfranklin at Nov 30, 2017, 01:12 PM
            Sounds like there is a better way to achieve what you're trying to do.
            All this is fine but it does not make the editor working. I thought that the editor should save the HTML code as i typed it into the source code area, but it (TinyMCE RTE) changes the code, making it absolutely crazy smiley

            I know about chunks. It was just an example to show that TinyMCE RTE does not work.
              • 4172
              • 5,888 Posts
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 53742
                • 24 Posts
                Bruno17, what should i do with TinyMCE to enable its editing template variables? I thought that such a feature should be enabled by default.

                i have looked at the link you specified. thanks. i have not found a setting to enable or disable T.V. editing there.
                  • 17301
                  • 932 Posts
                    ■ email: [email protected] | ■ website: https://alienbuild.uk

                    The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                    • 4172
                    • 5,888 Posts
                    Richtext - TVs should use the installed Richtext - Editor, by default. If not, this might be a bug with the installed Richtext - Editor.
                    And, of course, you will not find anything MODX - specific at the official TinyMCE - docs.
                    You will only find TinyMCE - specific stuff, there.

                    I allways try to avoid using Richtext - Editors at all, because they all tend to mess your input.
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 44195
                      • 293 Posts
                      Quote from: tester3 at Nov 30, 2017, 01:21 PM

                      I thought that the editor should save the HTML code as i typed it into the source code area, but it (TinyMCE RTE) changes the code, making it absolutely crazy smiley

                      This is precisely what rich text editors do... they change what you type and format it with tags.
                      They're not meant for code.
                      If you're looking for an editor for code I recommend Ace. (It's in the top 10 packages to download)
                        I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
                        Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com