Uploaded plugin as wanted to prevent stripping out of structured data on switching between visual and text.
At first looked great but on saving it alters all the html code
Example
‘<div itemscope itemtype=”https://schema.org/CreativeWork”>’
to
<div itemscope=”” itemtype=”https://schema.org/CreativeWork”></div>
I cannot get the post to show the code as is – suffice to say it changes the < and > to < and >
Any thoughts?
Thanks
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Works great for the most part but sometimes strips out all blank spaces minifying code and adding <code style=”display: none;”> before comments…
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>How do you add_filter XMLRPC to prevent posting html escaped content?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Hi,
I have used your plugin for several months and it has been very helpful. Unfortunately, I recently upgraded a couple of my sites to WP 4.0 (which also upgraded the editor as well, I believe). The site source is now being modified by the editor rather than preserving my desired HTML.
For example, <!--
is replaced by <! #8211
(without the space)
Bummer! I sure hope that you plan to update the plugin.
Thanks,
RHF
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>I tried using the Preserved HTML Editor Markup plugin. It messes up the line spacing on every web page. In the instructions, there is mention of needing to use the Fix It Tools with this plugin. What is the “Fix It Tools” and where can I get it?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Installed it, and followed the installation instructions from the authors, but the tabs are not showing up.
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Have you abandoned this plugin?
If so I will gladly co-author it with you and update to the latest version. There are a few deprecated functions like the_editor
, and also tinymce has changed dramatically with version 4 so there definitely needs to be changes.
Most importantly is fixing <\!–mep-nl–> and <code style=display: none; > from being used as placeholders for whitespace since it too is also getting preserved in version 4 when it shouldn’t be.
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Plugins I have enabled:
Preserved HTML Editor Markup
PS Disable Auto Formatting
(if having each one activate alone, the preserving doesn’t happen), with both activated, it almost work, except where there is [gallery] shortcodes.
It happens everytime, when I have gallery stuff in text editor – notice it only applies <p> around [gallery] shortcodes:
<h3>Pictures</h3>
<!-- 4 -->
<p>[gallery link="file" columns="4" ids="1863,1808,1794,1792"]
[gallery link="file" columns="4" ids="1861,1585,1759,1799,1779,1907,1768,1767,1785,1795,1763"]
[gallery link="file" columns="4" ids="1851,1827,1597,1586,1673,1689,1599,1802,1619"]
[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]</p>
<!-- 8 -->
[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]
[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]
[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]
[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]
When I switch to Visual tab and go back to text editor it becomes:
<h3>Pictures</h3>
<!-- 4 -->
<p>[gallery link="file" columns="4" ids="1863,1808,1794,1792"]</p><p>
</p><p>[gallery link="file" columns="4" ids="1861,1585,1759,1799,1779,1907,1768,1767,1785,1795,1763"]</p><p>
</p><p>[gallery link="file" columns="4" ids="1851,1827,1597,1586,1673,1689,1599,1802,1619"]</p><p>
</p><p>[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]</p>
<!-- 8 -->
<p>[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]</p>
<p>[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]</p>
<p>[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]</p>
<p>[gallery link="file" columns="4" ids="1876,1782,1752,1749,1766,1750,1776,1771"]</p>
Any idea then?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>I’m having problems with random div (2 x </div></div>) tags being added when editing pages.
Previously the plugin worked great, since then the client has installed 15+ new plugins.
I’ve deleted these but the issue is still occuring.
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>I’m using the <!–more–> quicktag to limit how much of each post shows on the home page. When I activate Preserved HTML Editor Markup the location of the quicktag no longer shows in the visual editor. The quicktag is still visible when I switch to the text view editor.
I switched to the Twenty Twelve, Twenty Thirteen, and Twenty Fourteen themes and the problem remained so the problem isn’t with my theme. When I deactivate Preserved HTML Editor Markup the quicktag location reappears in the visual editor.
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>I’ve just installed and activated this plugin and can’t find any of the settings you describe! There is no evidence of the plugin in my admin area, and when I edit my pages there is no evidence of the plugin either.
I’ve looked in the page editor, post editor, screen options on both pages, the admin menu, all the admin menu flyouts…
Am I being incredibly dense? Where do I look to be able to use this plugin?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>The plugin seem to cause an issue with the visual editor in WordPress 3.9.1
The editor doesn’t load correctly and just show some code.
Using IE’s developer tools I see the following JS error displayed in the console:
SCRIPT438: Object doesn’t support property or method ‘addUnload’
admin.js, line 73 character 17
The visual editor works correctly in Chrome and Firefox.
Any ideas for a fix would be much appreciated.
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>After the 3.9 update, switching between visual and text in the editor strips out style tags. Would love to get that functionality back, this plugin is a must-have for me! Thanks!
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>When I switched my WP install into force SSL on the admin area, this plugin breaks, because this JS file is not being sent over SSL, so it’s not being loaded:
https://www.myblog.com/wp-content/plugins/preserved-html-editor-markup/admin.js?v=1.5&ver=3.8.1
Is there a quick fix to this? Also, why isn’t the plugin using protocol relative links for its dependent files?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>not sure if it is because the blog is latest 3.8 version or the plugin?
but I need to preserve some code in an HTML form that gives users estimates of price based on inputs.
OnClick and OnChange for example. Well, even with this plugin installed, OnClick and OnChange still become onclick and onchange in the visual editor and thus.. don’t work.
Any help?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Thank you for a great plug-in. Unfortunately, I cannot use it unless this is fixed:
My shortcode:
[content_box title="<h2 style='color: #ffffff'>My Title</h2>"]
My sample content
[/content_box]
Single quotes are changed to double-quotes… which totally breaks the shortcode:
[content_box title="<h2 style="color: #ffffff">My Title</h2>"]
My sample content
[/content_box]
Would appreciate your reply on whether you will fix soon, or if I should abandon this plug-in.
Thank you!
Ryan
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Hey Marcus,
Congrats on your daughter! I just had my first son 3 weeks ago.. and we also have a daughter who will be five next month ??
One of my customers made me aware of this plugin.
After reading your intro.. I see you may need some help with solving an issue.
I write a lot of plugins for the WP editor; most popular is my Ultimate Tinymce plugin.
If you’d like some help with this.. just let me know!
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>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="https://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.
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>for example, go to
https://followingjerry.blogspot.com/
and copy that website source.
then paste in HTML editor of wordpress ,
then swith to Visual, then back to HTML,
and you will see that codes are messed up again. (for example, the last </body></html>
tags will be cut off..
I found one plugin, called ACE editor for WP, which is a good plugin, it doesnt messes up the content, after siwthing tabs..
]]>So, first off, this plugin is invaluable and should be how WP works in the first place!
I’ve come across an issue with the qTranslate plugin, and it is one that only you can solve ( I know it’s you and not qTranslate that can fix this as it’s at line 281 and 427 of sb_preserved_markup.php. )
qTranslate works by keeping all of the translations in the same field to avoid database bloat, etc, but it does it by marking each translation with an HTML comment like so: <!--:en-->English text here<!--:--><!--:fr-->French text here<!--:-->
This plugin has a routine in it to help preserve comments by wrapping them in a code block like so <code style="display: none;"></code>
.
The problem is that every time a post is edited, you end up with additional code blocks being added until you end up with something like this: <code style="display: none;"><code style="display: none;"><code style="display: none;"></code></code></code></code>
Would it therefore be possible to have a setting to turn this off if qTranslate is active?
Thanks for an otherwise brilliant plugin!
Peter
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Hi,
im using Siemple Field plugin (https://www.ads-software.com/plugins/simple-fields/) to add extra field in the content type.
Im adding some extra Textarea, but is not working in this one!
Is there a way? Thanks a lot and really good job
Thanks
Matteo
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Since this plugin seems more of a stop-gap than a permanent solution, I’m considering trying to edit my functions.php code (per the instructions here).
…But I wonder: what will happen to pages and posts I’ve already edited while the Preserved HTML Editor Markup plugin was active?
Will the extra paragraph tags and break tags remain in my posts and pages? Will I have reformat them? Will I have to reinstall WordPress?
Also, what would would happen if I changed the “Configure New Line Behavior Per Post Type” settings again so that they only use paragraph tags instead of the current break tags?
Any insights appreciated. Thanks!
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>I know that search engines reward clean code and penalize convoluted code. Since this plugin adds extra break tags and empty paragraph tags, aren’t you concerned that the awkward code could affect your page’s authority?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>On the various multi-site installs I’ve used this plugin on, it only is active for “superadmins,” and not anyone else. So superadmins can enter markup, etc., and save without worry, but anyone with lower privs’ edits are still run through wpautop.
This obviously makes it a lot less useful (for a very useful tool) in a multi-site environment. I haven’t peeked under the hood to why permissioning is set like this.
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>I’ve noticed that captions are not saved for some images with this plugin active.
When the plugin is not active clicking Update in the Edit image dialog saves the caption text as is seen by reopening the Edit image dialog.
This fails for some images if the plugin is active.
Has anyone else come across this problem?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Whenever, I add javascript in my editor, I always have tons of unnecessary code <!– mep – nl –> throughout my code. Is there a way to prevent this from changing the format?
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>Hi,
We are using your plugin to Preserve HTML, cos our site uses HTML5 and wordpress was stripping all the HTML5 tags.
Working ok, but we are facing the following issues
P.S. We have only Preserved HTML Editor Markup plugin enabled, PS Disable Auto Formatting is there but it is not activated.
Thanks,
Arf`a
https://www.ads-software.com/plugins/preserved-html-editor-markup/
]]>This plugin seemed perfect when I tested it. However, I noticed it also seems to strip I guess automatic tags like <p> that were added to my previous post. It would be great if it would work on new posts only, but I can’t go back and fix all my old post so I had to deactivate it. Thankfully everything formatted properly after that.
https://www.ads-software.com/extend/plugins/preserved-html-editor-markup/
]]>I was really relieved to find this plugin, but unfortunately it doesn’t seem to be working for me. I have divs that are opened in the template file and closed in the WP page editor. When I switch from text to visual and back again, the closing div tags get moved to the bottom of the page, thus breaking the layout. Any thoughts on what I might be doing wrong? Thanks.
https://www.ads-software.com/extend/plugins/preserved-html-editor-markup/
]]>I was really relieved to find this plugin, but unfortunately it doesn’t seem to be working for me. I have divs that are opened in the template file and closed in the WP page editor. When I switch from text to visual and back again, the closing div tags get moved to the bottom of the page, thus breaking the layout. Any thoughts on what I might be doing wrong? Thanks.
https://www.ads-software.com/extend/plugins/preserved-html-editor-markup/
]]>