[wp-trac] [WordPress Trac] #14341: Adjacent image disappears when a caption is added

WordPress Trac wp-trac at lists.automattic.com
Fri May 20 21:44:18 UTC 2011


#14341: Adjacent image disappears when a caption is added
----------------------------------+-----------------------------
 Reporter:  designsimply          |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Future Release
Component:  TinyMCE               |     Version:
 Severity:  major                 |  Resolution:
 Keywords:  captions needs-patch  |
----------------------------------+-----------------------------

Comment (by azaozz):

 <strong> is an inline tag, inserting a block tag like <div> or <dd> in
 there makes the HTML invalid. I think the browsers have difficulties
 displaying such HTML in contentEditable mode. In order to "fix" the
 invalidly nested tags it seems TinyMCE removes the <strong> node leaving
 only the new block node there.

 Not sure what we can do about these border cases where user edited code is
 later edited in the visual editor leading to invalid HTML.

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


More information about the wp-trac mailing list