Home>Support>Upgraded version has Visual Editor that strips tags.

Upgraded version has Visual Editor that strips tags.

I don’t know if this is a result of WP 4.8 or the latest Page Builder, but a table that I had created in a text-box in a row, had font awesome tags in it. However, when I edit that element, the table structure is still there, but the tags are missing. There doesn’t seem to be anyway to disable the visual editor from inside the page builder page. I have turned it off for wordpress.

If I readd all the font awesome tags, and save it, they stay, but editing the page again, they are all stripped.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 3 months ago ben8jam

    Oh man, would it add tags around everything? Just saved the page and it went bananas. Everything is wrapped in or there are empty blocks everywhere.

  2. 7 years, 3 months ago ben8jam

    Ok it looks like the last update to PageBuilder fixed the problem (x’s because the tag is active without).

    The visual editor still strips empty tags (used for font-awesome), so

    becomes

    once you click edit on the widget. However, I found that adding in extra code for accessibility,

    Yes

    – makes it stick. So I can get around it, but it would be great to know how to disable the visual editor.

  3. 7 years, 3 months ago ben8jam

    Crap you’re forum is super aggressive on html code…

    long story short, found a work-around, but is there a way to disable the visual editor?

  4. 7 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Ben,

    Sorry about that. :(

    By visual editor, do you mean the standard WordPress editor or the Visual tab of the SiteOrgin Editor?

    The only related change that I can think of would be the text widget change in 4.8. In 4.8, WordPress changed the text widget to make use of a basic TinyMCE editor. This change hasn’t gone over well as it can break a lot of HTML like in this instance. There’s no real reliable workaround from what I’ve seen but you could disable the Visual Editor. You can disable the Visual Editor by navigating to WP AdminUsersYour Profile and tick Visual Editor. Please note that this setting is on a user by user basis.

  5. 7 years, 3 months ago ben8jam

    I did disable the Visual Editor for my profile, but the visual tab still shows up only in the pagebuild Text widgets. I found a work-around for the time being, but it’s super annoying that it converts all my HTML upon opening the widget. Is there a way to disable it in for your plugin as well?

  6. 7 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Ben,

    Wait, it does? That’s likely a WordPress bug as I doubt that’s intentional.

    You can remove the text widget by adding some PHP to your website. If you’re not using a child theme, please install Code Snippets. Please navigate to WP AdminSnippetsAdd New and add the following PHP:

    function unregister_text_widget() {	unregister_widget( 'WP_Widget_Text' );}add_action( 'widgets_init', 'unregister_text_widget', 20 );

    Title the snippet: Remove Text widget and click Save Changes and Activate.

    If you are using a child theme, please add the above PHP to your functions.php.
    Please note that this will remove the text widget will completely disable the text widget.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More