1. Celebrating Uber Template with free Halloween logo decorations [ Click here ]


    [Stable Release 20 October] Uber - Responsive 3 in 1 Joomla template [ Release Note ] [ Demo ] [ Download ] [ Info ]


    JM Aroma - Responsive Magento theme for online restaurants [ Demo ] [ Download ] [ Info ]

User Tag List

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


    Join Date
    Apr 2011
    Posts
    3
    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
    14,748
    Points
    18,826.82
    Downloads
    1784
    Uploads
    0
    Mentioned
    94 Post(s)
    Tagged
    3 Thread(s)
    Thanks
    439
    Thanked 1,838 Times in 1,690 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

Stop working on Weekend!X

If your Boss broke your Joomla template or extension and ask you to fix it today. Here is the immediate solution. Then leave your request on the right forum, we will be helping after the Weekend Happy hours
Our Happy Hours: Friday 18:00 - Monday 9:00

No working during happy hours. Keep calm and don't break anything.

-->

Your vote matters!X

Vote for Best Support Guy