WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] tinyMCE add_action (3 posts)

  1. danalog
    Member
    Posted 7 years ago #

    I am trying to add a custom callback on tinyMCE.init through a plugin but having a hard time getting there.

    In the code there is: do_action('tinymce_before_init');
    and: do_action('mce_options');

    How should I use this in a plugin to add a custom callback?

  2. danalog
    Member
    Posted 7 years ago #

    Allright, I now use WYSI WordPress which I can edit outsie of the core WP files. Not really resolved but working.

  3. danalog
    Member
    Posted 6 years ago #

    Finally found out how to use it:

    function kda_mce_callback(){
    	echo "	handle_event_callback : \"scheduleScan\",\n";
    }
    add_action('mce_options', 'kda_mce_callback');

Topic Closed

This topic has been closed to new replies.

About this Topic