• Resolved gene4god

    (@gene4god)


    Hi digital people, just encountered the problem with custom script insertion, when I insert that code in a textual window it works just fine but as soon as I switch to visual window code disappears and script is not working anymore. Found different editor CKEditor, it has option to disable Advanced Content Filter which allows me to keep my custom code but this editor was updated 3 years ago ( and not as convenient as TinyMCE Advanced but for now I have to use it. Can you fix this setting please. And thank you for your commitment.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Also seeing problems, getting

    mce-view.min.js?ver=9e589bae063db3b543523c6b50e0da0e:1 Uncaught TypeError: _.pluck is not a function
    at Object.setMarkers (mce-view.min.js?ver=9e589bae063db3b543523c6b50e0da0e:1)
    at Hx.<anonymous> (plugin.min.js?wp-mce-4800-20180716:1)
    at jg.c.fire (tinymce.min.js?ver=4800-20180716:2)
    at Hx.fire (tinymce.min.js?ver=4800-20180716:2)
    at cf (tinymce.min.js?ver=4800-20180716:2)
    at lf (tinymce.min.js?ver=4800-20180716:2)
    at mceInsertContent (tinymce.min.js?ver=4800-20180716:2)
    at qg.execCommand (tinymce.min.js?ver=4800-20180716:2)
    at Hx.execCommand (tinymce.min.js?ver=4800-20180716:2)
    at Hx.insertContent (tinymce.min.js?ver=4800-20180716:2)

    Plugin Author Andrew Ozz

    (@azaozz)

    Inline script tags are not stripped in TinyMCE, however old-style inline event scripts in HTML tags are (like <img onerror="alert(1)">). This is a security enhancement/precaution.

    @chris2x where do you see that error? As far as I know WP still loads the old Underscore library in wp-admin. Unfortunately _.pluck was removed from (the newer) Lodash. I’ll see if core can be updated to use _.map instead.

    I see this when I enable the classic editor and the Yoast plugin at the same time. When I disable Yoast the problem goes away. Re-enable Yoast and it returns.

    Plugin Author Andrew Ozz

    (@azaozz)

    Think that’s the answer then ?? As far as I know Yoast has been fixed to work with the Classic Editor plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code keeping problem when switching from text to visual editor’ is closed to new replies.