plugin development: plugin activation and tinymce problem
-
hi,
i’m building a plugin. i hooked a function to be triggered when my plugin is activated (create table and update_option)… it was working before then suddenly after a while it’s not working anymore. i’m usingregister_activation_hook(__FILE__, array(&$obj, 'activate_my_plugin'))
it’s not working anymore so i have to call theactivate_my_plugin()
function in the admin_head hook… (it’s working using the admin_head hook)
also i have 5 textareas in my plugin’s options page, i need 3 of them converted into tinymce editors. i success fully loaded tinymce usingwp_enqueue_script('tiny_mce')
function then i used the usualtinyMCE.init()
to initialize the textareas but did’nt work. i also tried usingtinyMCE.execCommand("mceAddControl", false, "id_of_textarea")
but still didn’t work… HOW DO I ADD A TINYMCE EDITOR IN SPECIFIC TEXTAREAS IN MY OPTIONS PAGE?
- The topic ‘plugin development: plugin activation and tinymce problem’ is closed to new replies.