Support » Plugin: TinyMCE Advanced » No javascript redirects after WordPress 4.2.3?

  • One thing I really like about Tinymce Advanced is that it lets me save javascript redirects in my html like this:

    <script type="text/javascript">// <![CDATA[
    
    window.location = "URL"
    
    // ]]></script>

    Those redirects don’t work after updgrading to WordPress 4.2.3. Once we reverted back to 4.2.2, everything worked again. Will there be an update to re-enable these with Tinymce Advanced, or is support for this discontinued now? (We have a lot of redirects, so I hope it’ll get restored!)

    https://wordpress.org/plugins/tinymce-advanced/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Same problem here with:

    <script language=”Javascript”>
    // <![CDATA[
    top.location.replace(“… “);
    // ]]></script>

    Did you solve it already ?

    All embebed Javascript into pages or posts are destroyed by 4.2.3. In some case change [ or ” by html code, other truncate the code, etc.

    I had exactly the same problem but there is an easy fix (a bit of a pain if you have JS on a lot of sites though).

    In previous versions when you saved (from the text editor) <script>…</script> it got changed to <script>// <![CDATA[…// ]]></script>. This no longer happens.

    If you remove >// <![CDATA[ and […// ]]> and then save your JS will work fine.

    I had this happen to my Inlinkz codes too…. way too many to try and fix (over 6 years worth!! There has to be an easier fix!

    It looks like it is a bug in 4.2.3 causing this – https://core.trac.wordpress.org/ticket/33106.

    Thanks, but that is all Chinese to me! If I am reading it correctly there is not an easy fix??

    Thanks Peter for posting the fix and the note that this is a bug being fixed (hopefully!)

    Note for ReviewWire — if you can’t downgrade, you may want to consider doing a find/replace all across your site to make the change to all of the pages at once. There are various plugins that do this, just make sure to backup your site before trying it!

    Plugin Author Andrew Ozz

    (@azaozz)

    WordPress Dev

    Yep, that will be fixed in core.

    Andrew – what does “fixed in core” mean…does that mean with an update? Thx

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No javascript redirects after WordPress 4.2.3?’ is closed to new replies.