WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Conflict with Ultimate TinyMCE 2.0.2 (20 posts)

  1. vjargiro
    Member
    Posted 2 years ago #

    My colleague just updated our WP with Ultimate TinyMCE 2.0.2, and now its native table commands have stopped working. I deactivated WP-Tables Reloaded and the problem goes away. Seems there is a conflict. Are you aware of this? Is a fix possible soon?

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. Jenn65B
    Member
    Posted 2 years ago #

    Was this ever resolved? I have the same problem.

  3. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  4. SwedBear
    Member
    Posted 2 years ago #

    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.

  5. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  6. Caps
    Blocked
    Posted 2 years ago #

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

  7. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  8. espo74
    Member
    Posted 2 years ago #

    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.

  9. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  10. espo74
    Member
    Posted 2 years ago #

    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.

  11. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  12. Caps
    Blocked
    Posted 2 years ago #

    That worked out perfectly - thank you Tobias.

  13. espo74
    Member
    Posted 2 years ago #

    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.

  14. Caps
    Blocked
    Posted 2 years ago #

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

  15. espo74
    Member
    Posted 2 years ago #

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

  16. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  17. Caps
    Blocked
    Posted 2 years ago #

    Is this because the table objects within the text editor and WP-Table Reloaded have the same name?

  18. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    what do you mean? The problem with TinyMCE or the fact that both buttons are disabled by the code above?

    Regards,
    Tobias

  19. Caps
    Blocked
    Posted 2 years ago #

    You stated: "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 :-("

    I think I did not quite understand that. Why are you unable to create a custom WP-Table Reloaded button within TinyMCE? Your answer will help me to better understand why you can not have both, the TinyMCE packaged table and a custom WP-Table icon.

  20. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    WP-Table Reloaded adds to buttons to the WordPress editor: One for TinyMCE, and one for the "HTML editor". Both use a different JavaScript code for initialisation, but this code is added to the page at the same time, and can not easily be invoked separately at this time.
    The code for TinyMCE causes trouble at the moment, so it would be good to just remove that initialization code - which as just mentioned is not easily possible though :-( It is only possible to deactivate both buttons at the same time, with the code from above.

    So, until I have this fixed in a future update, the best choice is to disable the buttons and just use the Shortcodes manually.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic