WordPress.org

Support

Support » How-To and Troubleshooting » Remove Div from WYSIWYG

Remove Div from WYSIWYG

  • johnsimoneau
    Member

    @johnsimoneau

    Everytime we paste from an email or something the WSIWIG inserts stupid DIV tags. Is there a way to filter out DIV tags from being pasted? We don’t need them and it screws everything up.

    I know I can paste as plain text but we’d rather not.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi
    Forum Moderator

    @esmi

    Don’t paste content from emails into WordPress as the pasted text may also contain the email’s own formatting. In some cases, this formatting will stop your pages from being displayed correctly (if at all). Paste your text into NotePad (or another text editor) first, then copy from NotePad into WordPress.

    johnsimoneau
    Member

    @johnsimoneau

    Thanks, I appreciate the tip but all that does is strip the div tags for me. I’m trying to do the exact same thing just without the added step.

    I know the WYSIWYG editor can filter other things so I hoped this as well.

    We are always pasting the same thing so the DIVs are the only thing we need completely stripped.

    Thanks for any additional help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Div from WYSIWYG’ is closed to new replies.