• asafche

    (@asafche)


    first of all, you need to put it in a condition specific to the plugin page, because other wise you can messed up other plugins or even the admin panel functionality as you did here.

    In donation-goal.php, I’ve moved the ‘add_filter(‘admin_head’,’donation_goal_tinymce’);’ to line 301, inside of the isset check like this:

    if( isset( $_GET['page'] ) && $_GET['page'] == 'donate-goal/donation-goal.php' ){
    	add_action( 'admin_print_scripts', 'my_admin_scripts2' );
    	add_action( 'admin_print_styles', 'my_admin_styles' );
    	add_filter('admin_head','donation_goal_tinymce');
    }

    the issue is that something with the tinymce function call is messing up the tinymce in all of the admin.
    With this method it is only messing up the plugin page.

    Don’t have time to debug what is the specific bug with the call, but you can notice that some of the tinyMCE buttons (like paste from word or the “more” button) doesn’t show up.

    please fix this in the next plugin update.
    Cheers,
    asaf.

    http://wordpress.org/extend/plugins/donate-goal/

  • The topic ‘[Plugin: Donation Goals] your donation_goal_tinymce() is doing truble…’ is closed to new replies.