Support » Plugin: HTML Editor Syntax Highlighter » Not compatible with WordPress 4.6?

Viewing 14 replies - 1 through 14 (of 14 total)
  • I use wp 4.6 and don’t receive any error. Could you paste it here for further information?

    Thread Starter dries863

    (@dries863)

    I get this error: hesh.min.js?ver=1.7.2:2 Uncaught TypeError: Cannot read property ‘switchto’ of undefined

    I get it when I switch from “Visual” to “Text”. When “Text” is open and I refresh it works. However when I switch, it breaks again.

    Thread Starter dries863

    (@dries863)

    More people having this problem?

    Plugin Author James Bradford

    (@arniebradfo)

    What is your browser and browser version?

    Thread Starter dries863

    (@dries863)

    The newest chrome. I tested it on multiple pc’s.

    I get the same error occurs in WP 4.6.1.
    Chrome, IE11, FF is the same.
    I hope to be soon resolved.

    • This reply was modified 4 years, 5 months ago by imjusti.
    Thread Starter dries863

    (@dries863)

    I did some debugging. This is only happening when the Toolset Types plugin is enabled. Do you have the Types plugin enable too imjusti?

    I’ll try to debug the collision some more, but I’m not if I’m skilled enough for that 😉

    edit: I’ve made a dirty fix if(typeof(x) !=== “undefined”) and it works again.

    Can you please install the Types plugin and add a fix for the next release? Thanks 🙂

    • This reply was modified 4 years, 5 months ago by dries863.

    I found the cause.

    wp_enqueue_script ( ‘jquery-ui-datepicker’);

    That function was being used globally, was the problem solved after deleting that sentence.

    Many are included script using the ‘jquery-ui-datepicker’, I do not know exactly whether any part of this problem.

    Thread Starter dries863

    (@dries863)

    My fix didn’t work in the end…

    I tried @imjusti’s solution. But where did you remove the “wp_enqueue_script ( ‘jquery-ui-datepicker’);”. I can’t find the jquery-ui-datepicker in the plugin code…

    I was using a jquery-ui-datepicker in the plug-in made.
    So, if you remove it, the problem has been resolved.
    Perhaps it seems that conflicts between javascript.
    I want you to look to find the cause one by one remove the javascript.

    We have the same issue on WP 4.7

    https://wordpress.org/support/topic/hanging-when-switching-editor-from-visual-to-text-and-back/

    • This reply was modified 4 years, 1 month ago by SooBahkDo.
    Plugin Author James Bradford

    (@arniebradfo)

    Sorry for the late response.

    This might be fixed in Version 2.0 that will be released late May.

    Until then, You can download the .zip of the Version 2.0 release and install it yourself.

    Hope this helps.

    Thread Starter dries863

    (@dries863)

    Thanks :+1:

    Plugin Author James Bradford

    (@arniebradfo)

    should be fixed in v2.0

    open up an issue here if you have any more problems

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Not compatible with WordPress 4.6?’ is closed to new replies.