[wp-trac] [WordPress Trac] #35219: Extra HTML added to visual text editor
WordPress Trac
noreply at wordpress.org
Thu Dec 24 20:31:45 UTC 2015
#35219: Extra HTML added to visual text editor
--------------------------+-----------------------------
Reporter: tgaribaldi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The issue we have been having is that we provide HTML code for widgets,
and these widgets are being duplicated on the wordpress blogs. To recreate
1. Start a new post
2. Enter some text in the Visual editor window
3. Now switch to HTML and embed some HTML code. An example widget for us
is pasted below
4. Now switch back to Visual and enter more text or something
5. Go to HTML and enter another widget
Save and post
notice the HTML has been duplicated a couple times, is there any way to
prevent this when switching between visual editor and html editor?
I submitted a support ticket with our hosting service (wpengine.com) and
they have not been able to find a solution and it seems that the problem
is with wordpress.org's text editor itself as this is happening on all
wordpress.org blogs
Hopefully that is clear, please let me know if you have any solutions,
ideas or other questions! Thanks!
Sample widget code:
<!-- SHOPSTYLE COLLECTIVE WIDGET CODE START --> <div class="shopsense-
widget" data-
options="%7B%22widgetId%22%3A%2256732be7e7055a9f0e0f0134%22%2C%22version%22%3A1%2C%22pid%22%3A%22uid8100-24574090-40%22%2C%22size%22%3A200%2C%22columns%22%3A3%2C%22rows%22%3A1%2C%22url%22%3A%22https%3A%2F%2Fapi.shopstyle.com%2Fapi%2Fv2%22%7D"><script>
!function(doc,s,id){ var e, p; if(!doc.getElementById(id)) { e =
doc.createElement(s); e.id = id; p = '//shopsensewidget.shopstyle.com
/widget-script.js'; var cb = new Date().getTime(); p += '?cb=' + cb; e.src
= p; doc.body.appendChild(e); } if(typeof window.ss_shopsense ===
'object'){ if(doc.readyState === 'complete'){ window.ss_shopsense.init();
} } }(document, 'script', 'shopsensewidget-script'); </script> <iframe
src="//shopsensewidget.shopstyle.com/#/?options=%7B%22widgetId%22%3A%2256732be7e7055a9f0e0f0134%22%2C%22version%22%3A1%2C%22pid%22%3A%22uid8100-24574090-40%22%2C%22size%22%3A200%2C%22columns%22%3A3%2C%22rows%22%3A1%2C%22url%22%3A%22https%3A%2F%2Fapi.shopstyle.com%2Fapi%2Fv2%22%7D"
height="275px" width="705px" seamless style="border: 0;"></iframe></div>
<!-- SHOPSTYLE COLLECTIVE WIDGET CODE END -->
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35219>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list