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

    I know this question was sort of covered in a previous thread but I am still a little confused.

    My TinyMCE editor styles dropdown was not showing up any of my styles so;

    I placed a copy of my css stylesheet in /assets/site/sample.css
    I then went to tools/configuration/ and entered the path to this in the Path to CSS file: field. /assets/site/sample.css

    The styles now show up in the styles drop down of my Tiny Editor. However when I try to apply one of the styles if does not apply the style to the text. Is there something I have still forgotten to do?

    thanks
    m
      • 5340
      • 1,624 Posts
      Try Tools/Configuration/Interface & Features/CSS selectors.

      Make sure you upgrade TinyMce
        • 32654
        • 26 Posts
        xpix,
        Thanks for the reply. Can I add css classes into the selectors field for example class="headline"; class="headline2" etc

        or would it be headline=headline; etc or something else. Still just a beginner.

        Also I have the default TinyMCE v212

        thanks
        m
          • 5340
          • 1,624 Posts
          My Style 1=mystyle1;My Style 2=mystyle2

          Also you need to add the css classes to your TinyMCE css file.
          If I remember well it is a different file for TinyMce 3.xxx then 2.xx

          I strongly recommend upgrading to 303

          For 303 the css to add your clases is
          assets/plugins/tinymce303/jscripts/tiny_mce/themes/advanced/skins/default/content.css

          Note: You might have to select Custom in your Tools/Configuration/Interface & Features/Theme