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

  1. pezomatic
    Posted 2 years 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.


  2. Beej
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Preserved HTML Editor Markup
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic