[wp-trac] [WordPress Trac] #13314: HTML is deleted when switched to visual editor

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 12 13:10:04 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:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by chirael):

 Replying to [comment:4 scribu]:
 > After a user inserts special HTML inside the Text Editor, we could:
 > A) remove the special HTML immediately, so that they're not surprised
 when they switch to the Visual Editor
 > or
 > B) prevent them from switching to the Visual Editor, with a notice:
 "Switching to the Visual Editor will result in lost markup".

 While I think these are better than the status quo of silently removing
 markup, it still creates a problem in the (pretty common IMO) use case of
 a designer/programmer designing a site, then showing her/his customer how
 to use WP to update the site's content themselves using the friendly
 visual editor:

 1) Designer uses "special HTML" to achieve effects desired by client
 2) Initial project is complete, designer shows client how to do simple
 content updates her/himself using WP's friendly visual editor
 3) Client uses visual editor on page with "special HTML", saves, special
 HTML is stripped and page/site is now broken :(

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13314#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list