• This thread got started in “Plugin breaks content” post on 8/19/15, but thought it might be better to start a more specific post. Your plugin is loved and needed — and I (and obviously others) hope that you might be able to fix the incompatibility. I’d love to be able to continue using it. Thanks so much!

    Scenario: Have been using it for some time now on multiple sites with no problem. Two days ago I updated the site I’m working on to WP 4.3

    Problem: I immediately started having problems with posts. When switching back and forth from Visual to Text editors, the html would magically switch over to the Visual editor and the Text editor content would become munged. It happens more often than not, but I have had a few instances when it does not.

    Workaround: A temporary, but unsatisfactory, workaround is to cut the code from the Visual editor, switch to the Text editor and paste it back into it. Be careful about toggling between tabs, otherwise you may need to do that process again. It seems to help a bit if you leave the post in Text editor mode when leaving the post.

    Remedies Tried: I tried “Fix Posts” in the settings to no avail.

Viewing 12 replies - 1 through 12 (of 12 total)
  • I can also confirm I am having issues with this plugin and WP4.3.
    Unfortunately disabling the plugin breaks many of my pages, but leaving the plugin enabled leaves me almost unable to edit pages.

    I have found the visual editor displays the html code, and the text editor displays the html encoded html code (basically replacing all the <> with <> ). If I copy the text from the visual editor, paste it into the text editor, and then switch back to the visual editor, this fixes the issue until the next time load the editor for that page (then the issue repeats).

    I can also confirm this is not compatible with WP 4.3.

    I was able to get it working again by commenting out the following line inside of the sb_preserved_markup.php file.

    add_filter('the_editor_content', array(
                'MP_WP_Preserved_Markup',
                'fix_wysiwyg_content'
            ), 1);

    btuck044, thank you. Your solution worked for me.

    same for me. Thanks a lot.

    it worked!!!, thanks! what was that line for?

    Thread Starter Judy Leslie

    (@judy-leslie)

    Glad to hear it works. For those less savvy (like me), could someone please elaborate on how you “comment out” the code? I tried adding <!– code??? –>, but it crashed my site. Do you just delete the code? Thanks.

    Commenting out the code worked for me also.
    For me the file was located here;
    /wp-content/plugins/preserved-html-editor-markup-plus/preserved_markup_plus.php
    The code needing to be commented is on line 327-330. To comment the code, I added /* on line 326 and */ on line 331. So in the end my code from line 326-331 looks like this;

    /*
            add_filter('the_editor_content', array(
                'MP_WP_Preserved_Markup',
                'fix_wysiwyg_content'
            ), 1);
    */

    Alternatively you can remove the whole block of code from the file to accomplish the same thing. Commenting it out just means it is ignored.

    Hopefully once the dev updates the plugin this issue will be fixed and the code will be replaced anyway.

    Thread Starter Judy Leslie

    (@judy-leslie)

    Thanks so much, Eric, for the instructions. It works for me now as well. And thank you, btuck044, for discovering an effective workaround.

    Yea 4.3 deprecates wp_richedit_pre which is being filtered in the fix_wysiwyg_content btuck044 mentioned. It looks like it also is applying some new formatting on certain entities and special characters seen here and here.

    I haven’t had time to test btuck044’s fix yet, but it would be amazing if that fixed it. Seems like it’s never that simple!

    BTW here’s a gist of the edit and what Eric explained above for those who don’t have expierence editing files.

    Thank you very much for the solution, i need this plugin badly!

    Plugin Author J-Ro

    (@j-ro)

    updated with this solution, thanks all!

    I would like to add my vote for this plugin– it has saved me a number of times and it IS loved by many of us!

    Unfortunately I tried updating to the latest version of the plugin and found that my server’s PHP version also needs updating. So I hope that the current WordPress 4.3.x compatibility issues can be fixed by the time we can work out that PHP issue.

    Thanks for a great plugin– WordPress development apparently still devoutly believes there is “no use case” for switching between visual and text modes. Not a realistic (or helpful) attitude.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘No Longer Compatible with WP 4.3 Update :-(’ is closed to new replies.