Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By koffer on
In tinymce i can put a list of some style for text, how can i modify and add styles to this menu?
Comments
fckstyles.xml
Look in fckstyles.xml
thats where u can add new styles and or edit old ones
tinymce profile
in tinymce settings for each profile you can define CSS classes for "styles" droplist. these classes must be in the Editor css file. so if you want additional classes you must add them to your css file.
--
Geneticists from METU
Add own button
Do you know how to add our own button. like a code button, which works just like the bold and italic ones.
Right now I have to apply it as a format from format select combo box.
create a plugin for tinymce
what your trying to do is a plugin in tinymce.
RTFM-> http://tinymce.moxiecode.com/tinymce/docs/customization_plugins.html
a quick & dirty approach would be to make a javascript call to tinymce directly from the page
try something like
hope it helps :)
/morten.dk *king of Denmark*
/morten.dk
http://geekroyale.com | http://morten.dk
sweet, that is definetly
sweet, that is definetly easy
Do u know how to do that in fckeditor as well :) a quick shortcut way of adding a simple custom button
nopes
have no idea bout the fck editor but theres a manual somewhere ;)
/morten.dk *king of Denmark*
/morten.dk
http://geekroyale.com | http://morten.dk