By Swooperz on
How can I get TinyMCE to work with my theme's css file for styles?
I am using the Pushbutton theme and for the values under "CSS" in TINYMCE I have:
Editor CSS: Define CSS.
CSS Path: %tstyle.css.
CSS Classes: (blank)
I get nothing in my styles dropdown.
I imagine its in the path and I have tried "%t/style.css", "%t style.css" and "%tstyle.css" and none of these work.
Any ideas?
Thanks!
Comments
Try "%h%tstyle.css"
Actually, I hardcoded the URL: "www.example.com/themes/style.css" and it worked.
Custom style sheet for TinyMCE not working for me either
I also can't get my custom CSS to show up in TinyMCE (Drupal 4.6). I have tried several variations with the path, including the suggested 'hardcoded' path, without luck.
Not sure, but maybe this issue is related:
http://drupal.org/node/29509
Module (version 4.6) working now, after manual patching
After some searching on the drupal site, I discovered that there are two bugs in the *4.6 version* of the module. (I don't know what the status of the 4.7 version is). There are two patches to fix the issue described above, but so far the fixes haven't been made available in an updated release of the module. I manually patched the file, and it works. See the patches described here:
P.S.: The path for the CSS is relative to the main drupal directory, e.g. you can use
/misc/my_tinymce_styles.css