• I have changed the permissions for the two css files (tadv-mce and tadv-styles) and they are writeable, but the edit page keeps telling me they are ‘inactive’. Moreover the visual editor shows the style effects of the classes I’ve added to tadv-mce but they don’t show up in viewing the page itself.

    How do I activate those two css files?

    http://wordpress.org/extend/plugins/tinymce-advanced/

Viewing 14 replies - 1 through 14 (of 14 total)
  • grafis

    (@snackmaster)

    I have the same question.

    I have: “Import Current Theme CSS classes” checked but no classes are being imported.

    I’m trying to use “Custom CSS styles” but the CSS says it’s “inactive”

    I too have this. Just adding my voice to the request for someone who might have a solution to the problem of importing the css classes into the style dropdown. Andrew seems not to be responding to anyone on the plugin blog any more.

    Still no fix for the TinyMCE plugin, though I found a way to edit the buttons (and add a style drop-down list) in your functions.php file:

    http://blog.estherswhite.net/2009/11/customizing-tinymce/

    A little more work than I have time for at the moment, but it looks like it could solve the problem.

    I’m having this problem too, but with a different plugin….

    having the same problem, any fix please?

    artur

    (@fotoarturcom)

    SAME HERE!
    ** Also **
    i noticed that when i put new styles into the Style.css, THEY DO SHOW UP in the ‘Styles’ menu list…BUT ONLY ON FFOX/MAC! and dont show up on Safari/MAC.

    please fix asap.. thanks!

    i also have this same problem.. still searching for solutions
    i wanna change the dmsguestbook.css
    but it’s inactive!
    could somebody share their thoughts?
    greatly appreciated…

    +1 I have this problem too. It’s a real shame that such a simple thing can derail such a useful plugin. I guess we’re getting what we paid for. 🙁

    I finally did it – just include following code to your functions.php:

    /* Custom CSS styles on TinyMCE Editor */
    
    if ( ! function_exists( 'myCustomTinyMCE' ) ) :
    
    function myCustomTinyMCE($init) {
    
      	$init['theme_advanced_styles'] = 'Ueberschrift=ueberschrift;Foto=foto';  
    
     return $init;
    
    }
    endif;
    
    add_filter('tiny_mce_before_init', 'myCustomTinyMCE' );
    add_filter( 'mce_css', 'tdav_css' );

    This not only removed all predefined classes from the dropdown box, but lets you declare your own classes within the tadv-mce.css file.

    Only drawback: you will have to declare the classes you want to use within the “$init[‘theme_advanced_styles’] = ‘Ueberschrift=ueberschrift;Foto=foto’;” section of the code above. And naturally, your classes should also exist in your default-css for the frontend.

    Also, if you have troubles with Safari/Mac, don’t forget to empty your cache after doing any changes.

    I tried this code and my class is showing up in the styles dropdown, but its effects are not being implemented. I put the following style in tadv-mce.css and style.css:

    .mytestlass { font-weight: bold; text-transform: uppercase; }

    then put the following in functions.php:

    /* Custom CSS styles on TinyMCE Editor */
    
    if ( ! function_exists( 'myCustomTinyMCE' ) ) :
    
    function myCustomTinyMCE($init) {
    
      	$init['theme_advanced_styles'] = 'Mytestclass=mytestclass';  
    
     return $init;
    
    }
    endif;
    
    add_filter('tiny_mce_before_init', 'myCustomTinyMCE' );
    add_filter( 'mce_css', 'tdav_css' );

    If I change the $init line to
    $init['theme_advanced_styles'] = '';

    the style actually works but I get back all those default styles.

    Am I doing something wrong?

    Sounds to me like you didn’t empty your browser cache and reload the edit-page after implementing your code and classes…

    I got
    this after inserting the suggested code:
    Fatal error: Call to undefined function add_filter() in functions.php on line 39

    And in my case that line is:
    add_filter('tiny_mce_before_init', 'myCustomTinyMCE' );

    Just wanted to say thanks @turningpoint79 – that code worked for me. Took me ages to find this thread though!

    @turningpoint79: thanks a lot! It works great and solved my problem in less than 10 seconds!!!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: TinyMCE Advanced] How do I ‘activate’ tadv-mce.css’ is closed to new replies.