Adding TinyMCE custom buttons when using teeny_mce_before_init
-
Hi all,
I’m using the following code to produce a different TinyMCE bar to the default WordPress setup:
if (function_exists('wp_tiny_mce')) { add_filter("mce_external_plugins", "add_myplugin_tinymce_plugin"); add_filter('mce_buttons', 'register_myplugin_button'); add_filter('teeny_mce_before_init', create_function('$a', ' $a["theme"] = "advanced"; $a["skin"] = "wp_theme"; $a["height"] = "75"; $a["width"] = "800"; $a["onpageload"] = ""; $a["mode"] = "exact"; $a["elements"] = "elm1, elm2"; $a["editor_selector"] = "mceEditor"; $a["plugins"] = "safari,inlinepopups,spellchecker"; $a["forced_root_block"] = false; $a["force_br_newlines"] = true; $a["force_p_newlines"] = false; $a["convert_newlines_to_brs"] = true; return $a;')); wp_tiny_mce(true); }Can anyone tell me how to work a basic custom button in there?
All I need is a straightforward button which prints [ph_min] into the editor area.
Thanks in advance,
Duncan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Adding TinyMCE custom buttons when using teeny_mce_before_init’ is closed to new replies.