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

    I want only a few buttons in my TinyMCE. E.g.: Only Bold and Italic. How can I do this?
      • 42562
      • 1,145 Posts
      Which Extra are you using?
      https://modx.com/extras/browse/?search=tinymce

      If you are using my own, come we'll talk.
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 49710
        • 92 Posts
        I use: TinyMCE 4.3.4-pl

          • 49710
          • 92 Posts
          Your Extra look nice. I think I give it a try.
            • 49710
            • 92 Posts
            All right, your Extra looks much better. I only want this Buttons:

            Bold, Italic, list and Headings.

            Is it also possible that I can switch to SourceCode-View with source code highlights?
              • 42562
              • 1,145 Posts
              BTW anything you see on tinymce.com can be implemented by you with TWrapper
              https://www.tinymce.com/docs/configure/editor-appearance/#toolbar

              Open up one of the chunks created for you under TinymceWrapper >> TinyMCE >> Backend
              E.g TinymceWrapperContent (for your main content)
              tinymce.init({
                ...
                toolbar: 'bold italic | bullist numlist etc' //use styleselect for HEADINGS
                //in version TWrapper 3.0 you will be able to do twButtons-h1 twButtons-h2 twButtons-h3
              });
              

              Syntax highlighting comes in by default, Ace (or CodeMirror)
              Look in the TinymceWrapperCommonCode chunk to switch the one you like
                TinymceWrapper: Complete back/frontend content solution.
                Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
                • 49710
                • 92 Posts
                toolbar: 'bold italic | bullist numlist'


                Only BOLD and ITALIC appears. No LISTS buttons?
                  • 49710
                  • 92 Posts
                  I juste installes CodeMirror. And erased the comment sign "//" from this line in the chunk:
                  twCodeMirror: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twCodeMirror.js",


                  Now I get this error Message when I open a MODx document:
                  Failed to load plugin url: /assets/components/tinymcewrapper/tinymceplugins/twCodeMirror.js
                    • 42562
                    • 1,145 Posts
                    Is that error a 404?
                    Please go to your folder /assets/components/tinymcewrapper/tinymceplugins/twCodeMirror.js
                    And see if the file exists

                    https://www.tinymce.com/docs/plugins/lists/
                    https://www.tinymce.com/docs/plugins/advlist/
                    For list to appear, make sure you have the plugins loaded
                    tinymce.init({
                      ...
                      plugins: "lists, advlist ...",
                      toolbar: "numlist bullist ..."
                    });
                      TinymceWrapper: Complete back/frontend content solution.
                      Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                      5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
                      • 49710
                      • 92 Posts
                      I dont have a "tinymcewrapper" folder in assets/components/

                      The lists now work:
                      lists, advlist was not in the "plugin-list".