[wp-trac] [WordPress Trac] #13314: HTML is deleted when switched to visual editor
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 6 19:32:45 UTC 2012
#13314: HTML is deleted when switched to visual editor
--------------------------+------------------------------
Reporter: BH8489 | Owner: azaozz
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by scribu):
A conceptually simple way of implementing B) would be this (in
pseudocode):
{{{
function maybe_text_to_visual( source ) {
output = text_to_visual( source );
if ( visual_to_text( output ) != source ) {
alert( "Oh noes! Can't switch to visual editor!" );
return;
}
...
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13314#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list