The default editor TinyMCE has instructions on adding styles into the
interface. What I did was go to there site and research how to add
styles into the interface directly. However, after reading the
literiture, I am positive it could be dynamically by reading a css file
and populating the dropdown based on your own styles.
For Tiny mce the style menu is populated through this parameter....
theme_advanced_styles : "css_drop_option=css_style_code;" });
The full code for "tinyMCE.init" function is below...
---------------------------------------------------------------------------------------------------
tinyMCE.init({
theme: "advanced",
mode : "exact",
elements : "#attributes.textareaname#",
insertimage_callback : "showWindowdmImage",
file_browser_callback : "showWindowdmFile",
width: "100%", height: "400",
plugins :
"table,advhr,advlink,preview,zoom,searchreplace,print,contextmenu,
paste,directionality,fullscreen",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,forecolor,backcolor",
theme_advanced_buttons2_add_before:
"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add :
"advhr,separator,print,separator,ltr,rtl, separator,fullscreen",
theme_advanced_toolbar_location :
"top", theme_advanced_toolbar_align :
"left", theme_advanced_path_location :
"bottom", theme_advanced_disable :
"hr", theme_advanced_resize_horizontal :
false,
theme_advanced_resizing : true,
theme_advanced_styles :
"style_name=style_code;"});
-------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/farcry-dev
-~----------~----~----~----~------~----~------~--~---