WordPress.org

Ready to get started?Download WordPress

Forums

Donation Goals
your donation_goal_tinymce() is doing truble... (1 post)

  1. asafche
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic