WordPress.org

Ready to get started?Download WordPress

Forums

Preserved HTML Editor Markup
Any idea why your plugin does not work on this code? (2 posts)

  1. pezomatic
    Member
    Posted 8 months ago #

    I am trying to insert an SVG image into a post. If in inadvertently open the WordPress Visual editor it rewrites my code. I have tried a half dozen plugins that claim they will prevent my HTML code from being changed but none of them seem to work.

    Here is my original code:
    <object type="image/svg+xml" data="image.svg">Your browser does not support SVG</object>

    Here is what WordPress visual editor changes it to:
    <object width="320" height="240" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="image.svg" /><embed width="320" height="240" type="application/x-shockwave-flash" src="image.svg" />Your browser does not support SVG</object>

    Any help getting your plugin to work on this would be greatly appreciated. Thanks.

    http://wordpress.org/plugins/preserved-html-editor-markup/

  2. Beej
    Member
    Posted 3 months ago #

    This plugin doesn't add code. Must be another plugin that's filtering object tags.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags