WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP-Table Reloaded] Conflict with Ultimate TinyMCE 2.0.2

[Resolved] [Plugin: WP-Table Reloaded] Conflict with Ultimate TinyMCE 2.0.2

Viewing 15 replies - 1 through 15 (of 19 total)
  • Was this ever resolved? I have the same problem.

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    @jenn: Thanks for bringing this up again. I hadn’t seen this post by now, as it was not tagged properly.

    Unfortunately, there seems to be a problem with the button integration of WP-Table Reloaded, into the editor toolbar. I wasn’t yet able to find the exact cause unfortunately, but I will hopefully have a solution the future. Sorry for not having better news. 🙁

    Regards,
    Tobias

    Just want to update to let you know this is a general problem with other plugins like TinyMCE Advanced also. With that plugin the button is there but opens up with the TinyMCE Advanced table popup. As soon as I deactivate TinyMCE Advance your plugin takes over the table-button again.

    And as vjargiro said, in Ultimate TinyMCE the table button doesnt work at all and only your button.

    Have you thought about creating your own button? I have TinyMCE Templates also and that plugin adds its own button instead of hijacking another button. IMHO it would be better to leave the regular table-button alone or at least let us choose.

    I love the plugin so I really do want to use it but need a proper table-button function also for those tables that doesnt work well in the plugin.

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    by default, WordPress does not have a table button in the TinyMCE toolbar, so WP-Table Reloaded is not hijacking anything 🙂 It is adding its own button, but the problem might be, that both WP-Table Reloaded and the other TinyMCE plugins give their respective table button the same internal name. This probably results in a conflict.

    I’ll investigate if I can change this easily.

    Regards,
    Tobias

    I was also wondering about the TM table not working when you click TinyMCE table icon, the one with the pencil.

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    I believe that this is just an imcompatibility at this time, as both plugins seem to use the same internal name for the button. I hope to be able to fix this in the future.

    Regards,
    Tobias

    am running into this with a few clients as well. is there a quick patch i might be able to do (a rename of the button in the code?) until you update. I know this is minor issue and doesn’t really justify an update to the whole plugin, but I’d love to do a quick search/replace in the code to get my clients to stop bugging me!

    thanks–Awesome plugin, still love it more than anything.

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    you could maybe try renaming the file “admin-tinymce-buttons-script.js”. If that is not found by the browser, it won’t be executed and thus can’t result in an error – hopefully.

    Regards,
    Tobias

    Tried doing this and the entire set of editor buttons goes away. I think it is because you are both modifying the tables button. Is there anything that can be added/adjusted to create/use a different button or to completely disable this functionality? I would rather have both, but the table editor on a per page basis is more important to my client than the insert table functionality. They can keep track of which table is which and manually add in the shortcodes for the larger tables that we use your plugin for on their own.

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    ah, that solution would have been nice.
    Then we’ll do it with some code instead. Please add the following to your theme’s “functions.php”:

    function remove_wp_table_reloaded_tinymce_button() {
      global $WP_Table_Reloaded_Admin;
      $pages_with_editor_button = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php' );
      foreach ( $pages_with_editor_button as $page )
        remove_action( 'load-' . $page, array( &$WP_Table_Reloaded_Admin, 'add_editor_button' ) );
    }
    add_action( 'admin_init', 'remove_wp_table_reloaded_tinymce_button' );

    Regards,
    Tobias

    That worked out perfectly – thank you Tobias.

    Thanks, that worked great. I had tried similar code (from a previous post) but couldn’t get it to work, this one did the trick.

    Any way to easily move your button to the wp-content-editor-tools section instead of being in the mce editor area?

    Your quick responses are fantastic–really appreciate it.

    Yes, I second that about having access to the WP-Table Reloaded via the text editor using a button.

    sent some some beers your way. Thanks for all your help with all of these questions.

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    thanks for the confirmation that this helped!

    The text editor actually also has the table button, but the code above will remove that as well. I don’t see a solution to keep it there, while removing it from TinyMCE at this time. Sorry 🙁

    The workaround is to just type in the Shortcode manually, after finding out the table ID from the list of tables.

    Best wishes,
    Tobias

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Resolved] [Plugin: WP-Table Reloaded] Conflict with Ultimate TinyMCE 2.0.2’ is closed to new replies.