[wp-trac] [WordPress Trac] #13314: HTML is deleted when switched to visual editor
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 13 22:14:07 UTC 2012
#13314: HTML is deleted when switched to visual editor
--------------------------+-----------------------
Reporter: BH8489 | Owner: azaozz
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.5
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------
Comment (by MarcusPope):
Replying to [comment:13 azaozz]:
> ...
> As the html is parsed into a DOM and then serialized back to a string,
keeping the original white space/line breaks is impossible, except in a
<pre>.
As with most of everything related to software, not only is it
'''possible''', it's also pretty easy to implement:
http://wordpress.org/extend/plugins/preserved-html-editor-markup/
@SergeyBiryukov: My plugin also prevents the issue you outlined above wrt
html5 attributes.
@scribu - Thanks again for resurrecting this issue and giving it serious
consideration. If you have any questions or need some help with the
details in the future please feel free to email or tweet me. I'm pretty
proficient with both TinyMCE and dom parsing in general.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13314#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list