1. JM Lingerie - Preview released


    JA Smashboard - June Joomla 2.5 & 3.0 Responsive template Preview released


    Vote now - Choose the template types you want in coming months


    Tools & Tips - Make your Joomla site faster


User Tag List

+ Reply to Thread
 
Results 1 to 2 of 2
  1. #1


    Join Date
    Apr 2011
    Posts
    7
    Points
    17.79
    Downloads
    15
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Add custom style to tinymce

    I'd like to add my custom styles to TinyMCE, I wrote my css file and put it in the css folder of the Ja Purity template. Then I have my first trouble, the index.php doesn't show any reference to the css files, so I explored component.php and here i found it and add the string
    HTML Code:
     <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/editor_content.css" />
    Now I open my tinyMCE and... surprise! There is no custom style

  2. #2
    JA Developer Saguaros's Avatar
    Join Date
    Apr 2009
    Posts
    10,391
    Points
    8,661.30
    Downloads
    1073
    Uploads
    0
    Mentioned
    29 Post(s)
    Tagged
    2 Thread(s)
    Thanks
    67
    Thanked 725 Times in 672 Posts
    Hi there,

    You need to look in the plugin in the back end. Goto plugin manager and look for Editor - TinyMCE

    In there there is a parameter 'Use template Css':

    - If it's set to 'Yes', by default, the Plugin looks for an editor.css file, if it cannot find one in default template, it will load the editor.css file in system template. So in this case you can override the css file in your default template.

    - Regarding the case that you wanna use your own css file, you should set parameter 'Use template Css' to 'No'. Then in parameter 'Custom CSS Classes', you fill with url to your custom css file.

    Hope this helps.

    Click Thanks if my post is helpful

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts