We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24806
    • 43 Posts
    Heyho,

    I would like to include a WYSIWYG Editor such like TinyMCE in my page. Not for the management but for the web users who would like to edit their own content like a forum post here. Does anybody knows how this works?

    greetings
    Max
      I love MODx
      • 34162
      • 1 Posts
      hi i also would like this, so i can set up pages and admins can edit without logging into manager but instead logging in as registered users...?
        • 24806
        • 43 Posts
        Hm, does nobody have an idea?
        *push*
          I love MODx
          • 16068
          • 6 Posts
          I’d be interested in knowing how to do this as well.



            • 12690
            • 8 Posts
            Me too. Put me in the list.
              Regards,

              ----------
              Iggy wink
              • 16068
              • 6 Posts
              Still don’t know whether there is a modx specific way of calling TinyMCE but
              I was able to do it through altering the Template and adding the following:
              <script language="javascript" type="text/javascript" src="assets/plugins/tinymce308/jscripts/tiny_mce/tiny_mce.js"></script>
              <script language="javascript" type="text/javascript">
              	tinyMCE.init({
              		mode : "textareas",
              		theme : "simple"
              	});
              </script>
              


              This is bacisally copied from example page on TinyMCE website.

              Works for me.
                • 24806
                • 43 Posts
                Hey, great. I do not need it anymore at the moment but next time... Thanks.
                regards,
                Max
                  I love MODx
                  • 12690
                  • 8 Posts
                  Well done kmichal! cool
                  Would you tell me wich template did you edit and where in it you add your code? I’m very green in MODx and I’m afraid I’ll make a mess if I’ll just try without guides.
                    Regards,

                    ----------
                    Iggy wink
                    • 16068
                    • 6 Posts
                    You edit the template of any page that you want to display TinyMCE on.
                    I for example have one template in which I use eForm to generate a form.
                    This form has one textarea element.

                    Once I added the code above to that template, the textarea element was converted into TinyMCE editor.

                    It’s pretty simple. All you need to remember that that a page need to have the code above, and a form with at least one
                    textarea element in it.


                    Another way to acheve this would be through eForm parameters, but that a little more advanced.
                      • 12690
                      • 8 Posts
                      Oh, thanks for share. You’re sweet kiss
                        Regards,

                        ----------
                        Iggy wink