Subscribe: RSS
  • I'm to stupid to integrate a list of styles for the TinyMCE RTE add-on. I tried several ways, like comma separated list, ... I also tried to copy the complete example from the docs in the field. It's not possible. Please can you give me an short example how to integrate a list?

    Thanks
    • It's been years since I used TinyMCE, so I might be way off base here, but the way I remember it was you could simply create a custom stylesheet containing the classes you wanted to show in TinyMCE and link it using the editor_css_path system setting. Is that something you've already tried?
      • In the basic TinyMCE from splittingred you can add classes with title=name but in TinyMCE RTE from the boxer there is a other way. Which editor do you use?
        • I'm too stupid to integrate a list of styles for the TinyMCE RTE add-on. I tried several ways, like comma separated list, ... I also tried to copy the complete example from the docs in the field. It's not possible. Please can you give me an short example how to integrate a list?

          I think, only TinymceWrapper is currently supported here on the forum.
          With TinymceWrapper, whatever you see on the TinyMCE docs, can be done, period! no stupid magic to implore first.

          Just paste that in your init chunk, done!
          tinymce.init({
            ... ,
            link_class_list: [
              {title: 'None', value: ''},
              {title: 'prettyLink', value: 'prettyLink'},
              {title: 'colorBox', value: 'colorBox'}
            ],
            image_class_list: [
              {title: 'None', value: ''},
              {title: 'prettyPhoto', value: 'prettyPhoto'},
              {title: 'colorBox', value: 'colorBox'}
            ],
            ...
          })


          And stop feeling stupid, start feeling awesome with TinymceWrapper smiley
          Maybe it is past high time to make that irreversible switch!!!!!?????

          Full TinymceWrapper support thread, get on board yesterday!!!
            TinymceWrapper Suite: Complete back/frontend content solution
            Structures: MODX Content Building Revolutionized

          • It's similar to what donshakespeare said. In the system settings there are two options for tinymcerte.link_classes and tinymcerte.image_classes. Those settings expect JSON classes and code e.g.
            [{"title":"None","value":""},{"title":"No Border","value":"no-border"}] 
              Mat Dave Jones
            • Quote from: matdave at Oct 03, 2016, 02:30 PM
              It's similar to what donshakespeare said. In the system settings there are two options for tinymcerte.link_classes and tinymcerte.image_classes. Those settings expect JSON classes and code e.g.
              [{"title":"None","value":""},{"title":"No Border","value":"no-border"}] 

              I've spent many hours over many months looking for this one answer! Which crypto would you like to be paid in smiley
              • Quote from: matdave at Oct 03, 2016, 02:30 PM
                It's similar to what donshakespeare said. In the system settings there are two options for tinymcerte.link_classes and tinymcerte.image_classes. Those settings expect JSON classes and code e.g.
                [{"title":"None","value":""},{"title":"No Border","value":"no-border"}] 

                Great mate thanks!!!!
                  --
                  ysanmiguel.com