• Resolved roadlittledawn

    (@roadlittledawn)


    As mentioned in my post in the resolved topic, the plugin is still broken in 4.3. When selecting “Text” mode, the editor does not display. Only workaround is selecting “Text” then selecting “Publish” or “Update” so the page reloads and HTML editor loads.

    Using Chrome web dev tools, looks like there’s an error coming from hesh.min.js that reads:
    Uncaught TypeError: switchEditors.switchto is not a function

    Looks like something changed in 4.3 and that function is not compatible with it?

    Love the plugin. Keep up the good work!

    https://www.ads-software.com/plugins/html-editor-syntax-highlighter/

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Peter Mukhortov

    (@nixdns)

    Did you install updated plugin v1.6.8?
    I can’t reproduce it. Can you please add steps to get this error? And what version of your browser.

    Thread Starter roadlittledawn

    (@roadlittledawn)

    Yep, I’m on v1.6.8.

    Browser is Chrome v 45.0.2454.85 (64-bit).

    Steps:
    1. Access /wp-admin.
    2. Go to edit post.
    3. On edit post page, select Text tab.

    Text area disappears and boxes below crunch up near top of where toolbar normally is.

    I disabled TinyMCE Advanced plugin, and it still occurs.

    Same here. Up-to-date Firefox, WP and plugin. Only this plugin activated. Blank box (or sometimes collapsed box) in editor, with no way to type in it.

    Screenshot available if useful..

    Can confirm the problem occurs here in Chrome for Mac too. Have had to deactivate it for the time being as the Text / code panel is unusable.

    Hello,

    Can you please help me I have also getting the same error my word press is Version 4.3 ,
    Uncaught TypeError: switchEditors.switchto is not a function
    Please help me urgent.

    Thanks

    Thread Starter roadlittledawn

    (@roadlittledawn)

    I don’t quite have the technical depth to accurately assess the cause and solution here, BUT I dug up some info that seems relevant.

    WordPress 4.3 tweaked how content is prepared in the Visual and Text editor modes. Both are now prepared/escaped the same (runing the textarea content through the JavaScript wpautop() before initializing TinyMCE).
    WP 4.3 release notes (annotated)

    Maybe that’s the cause of the error?

    Looking at before (WP 4.2.3) and after (4.3) versions of wp-admin/js/editor.min.js, it changed quite a bit, moving the switchEditors function to the end. Like I said, don’t have the technical depth to know if/how that affects HTML Editor Syntax Highlighter plugin, maybe a good place to start?

    Hello,

    My problem was solved I have made changes related to the editor in plugin file.
    In my site I have used the wordpress 4.3 version and the fustion core plugin giving problem so I have made changes in,
    wp-content/plugins/fusion-core/admin/page-builder/assets/js/js_wp_editor.js

    Replace,

    onclick="switchEditors.switchto(this);"
    

    to,

    data-wp-editor-id="'+current_id+'"
    

    Its working properly.
    Thanks.

    Thread Starter roadlittledawn

    (@roadlittledawn)

    FWIW, still broken in WordPress version 4.3.1 released today.

    Plugin Author Peter Mukhortov

    (@nixdns)

    I tried to reproduce this issue in Chrome, FireFox, and Safari. But plugin works just fine.
    Probably the old JS file is still in the browser cache, or plugin didn’t updated correctly.

    Try to reinstall the plugin by deleting it and installing again. Also you could try to disable all other plugins just to make sure it is not conflicting with some other plugin.

    Thread Starter roadlittledawn

    (@roadlittledawn)

    Damn browser cache! That did the trick (of course). I cleared cache and reinstalled the plugin. Tested in Chrome and Safari. Back to normal. Thanks for the response!

    Has resolved for me too.

    Just installed today, working in Chrome for me, but not Firefox.

    Tried clearing the Firefox cache (and tried in incognito mode, which shouldn’t be pulling from the cache) and no dice.

    Not a huge deal since I primarily use Chrome, just wanted to note that there may still be a weird issue here.

    Bub

    (@jdenning47)

    I have the same problem. Also when I go to a page and open it and toggle between text-visual-text and then try to bail out of the page WITH NO EDITING WordPress gives me the “confirm navigation” warning as if I modified the page. I am experimenting in my ‘sandbox’ site and the other plugins are Genesis types and that’s it. I work using Chrome and also see it in Firefox. I just deleted and reinstalled your plugin and the problem is still there.

    Bub

    (@jdenning47)

    I found the problem. It is not ‘responsive’. If you compress your browser horizontally eventually the one line of control button above the text entry box becomes two lines. This obscures the top line of text code. I don’t know why I get the “confirm navigation’ warning but I don’t believe it is related to this plugin.

    Confirmed. Full-screen it’s fine. Though, it’s something a little more complicated than just obscuring the top line of code since, if I hold down the Enter key, I don’t eventually see my cursor.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Plugin still broken in WP 4.3’ is closed to new replies.