We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42184
    • 27 Posts
    Does anyone know if it is possible to apply multiple classes to an element using TinyMCE?

    For example, I have the classes 'img', 'img-border' and 'img-left' which I would like to apply to an image as follows:

    <img class="img img-border img-left" src="image-path" alt" ">


    Is there any easy way to implement this via the editor?
      • 42184
      • 27 Posts
      Figured it out. For reference:


      1. Go to System > System Settings
      2. Select tinymce settings
      3. Set the value of tiny.css_selectors to 'Image Border Left=img img-border img-left' (without the quotes)

      :-)