• Resolved wpopas

    (@wpopas)


    Hi,

    thanks for the great plugin. Just noticed the plugin has been rewritten and tried to update it in our test environment. Unfortunately the plugin breaks wysiwyg editors everywhere.

    It seems that this plugin and the very popular Ultimate TinyMCE clash somehow if you enable the Styles dropdown in Ultimate TinyMCE settings.

    In previous wysiwyg ticket there was a problem and I guess it was also about the Styles dropdown. How can I fix this and is there a fix coming?

    This problem can be reproduced on a fresh install. You just have to install Easy Modal and Ultimate TinyMCE and then enable the Styles dropdown in Ultimate TinyMCE settings.

    http://ww.wp.xz.cn/plugins/easy-modal/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    Ok after looking into this it seems the real problem is that Ultimate MCE needs some work in terms of being more compatible. I found at least 16 errors after enabling the plugin with Blackbox plugin. Will let the developer know.

    But moving on, I patched Easy Modal to check for the existence of UltMCE style select option. If it exists then it gets the row its set to and adds styles to it. Otherwise it runs it the way it was defaulting to row 2.

    The problem was that by default UltMCE put the styleselect box on row 4, my plugin called an action based on its default location row 2 orignially looking like this

    add_filter("mce_buttons_2", array(&$this, '_TinyMCEButtons'), 999);

    Now it looks like this

    $row = 2;
    // Ultimate MCE Compatibility Check
    $ultmce = get_option('jwl_options_group1');
    if(isset($ultmce['jwl_styleselect_field_id']))
    {
    	$row = intval($ultmce['jwl_styleselect_dropdown']);
    }
    add_filter("mce_buttons_{$row}", array(&$this, '_TinyMCEButtons'), 999);

    Yuck.. I hope that he takes my suggestions and reworks these a bit as i hate to see large chunks like this in plugins ( usually because other plugins arn’t optimized for WP properly ).

    Look for an update shortly to fix this. Please take a minute to rate and review the plugin http://ww.wp.xz.cn/support/view/plugin-reviews/easy-modal

    Thread Starter wpopas

    (@wpopas)

    Okay,

    thanks for the fast response.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Another WYSIWYG broken’ is closed to new replies.