In tinymce i can put a list of some style for text, how can i modify and add styles to this menu?

Comments

MySchizoBuddy’s picture

Look in fckstyles.xml
thats where u can add new styles and or edit old ones

ufku’s picture

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

MySchizoBuddy’s picture

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.

mortendk’s picture

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

bold:  onclick="tinyMCE.execCommand('Bold');"
html stuff: onclick="tinyMCE.execCommand('mceInsertContent',false,'<b>Drüpal rocks</b>');" 

hope it helps :)
/morten.dk *king of Denmark*

MySchizoBuddy’s picture

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

mortendk’s picture

have no idea bout the fck editor but theres a manual somewhere ;)

/morten.dk *king of Denmark*