• Resolved mixos

    (@mixos)


    Hi there,

    Thanks for this great plugin.

    I can see a button on my classic editor toolbar that is from TablePress but when I click on it nothing happens. The button is labeled “Insert Table from Tablepress” and I suppose it should open a dialog to add a new table to the post. right?

    Clicking on it does nothing for me. Tested on latest firefox.

    Best
    Mike

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I just tested this on my dev and test sites (with the “Classic Editor” plugin installed) but could not reproduce this issue. My guess is that something else is interfering on your site. Can you therefore please try again after temporarily deactivating all other plugins and after switching to a WordPress default theme like Twenty Twenty? That way, we can find what’s causing this.

    Regards,
    Tobias

    Thread Starter mixos

    (@mixos)

    Let me provide some more details. When I click the button i get this JS error on the console. If I reload the page with the console open then the button works!

    Uncaught TypeError: o is undefined
        e https://www.domain.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20201110:2
        execCommand https://www.domain.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20201110:2
        execCommand https://www.domain.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20201110:2
        onclick https://www.domain.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20201110:2
        fire https://www.domain.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20201110:2
        fire https://www.domain.com/wp-includes/js/tinymce/themes/modern/theme.min.js?wp-mce-49110-20201110:1
        o https://www.domain.com/wp-includes/js/tinymce/themes/modern/theme.min.js?wp-mce-49110-20201110:1
        C https://www.domain.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20201110:2
        d https://www.domain.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20201110:2
    • This reply was modified 5 years, 1 month ago by mixos.
    • This reply was modified 5 years, 1 month ago by mixos.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    unfortunately, that doesn’t really show us a solution. But from what I can see, part of the error seems to be caused by a theme JS file. This then likely causes the browser to stop evaluating JavaScript code on the page, including that from TablePress.
    To verify that assumption, I can only recommend to test again with a WordPress default theme.

    Now, even if you can’t get the button to work, you can still use the TablePress tables in your posts and pages: Just type in the Shortcode

    [table id=123 /]
    

    (with the correct table ID) manually.

    Regards,
    Tobias

    Thread Starter mixos

    (@mixos)

    Yes, I can insert tables with the shortcode, no problem there.

    Do you think the error comes from tinymce.min.js or the theme.min.js

    I am trying to avoid deactivating the current theme, as this will cause some things to reset.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    good question… I would lean to theme.min.js, simply as tinymce.min.js is such a widely used library – but I’m not sure.

    Regards,
    Tobias

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

The topic ‘Insert Table button on classic editor doesn’t work’ is closed to new replies.