[wp-trac] [WordPress Trac] #31375: Image caption with heading adds an empty paragraph at page edits

WordPress Trac noreply at wordpress.org
Sun Mar 22 20:39:04 UTC 2015


#31375: Image caption with heading adds an empty paragraph at page edits
--------------------------+------------------------------
 Reporter:  sweman        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by janhenckens):

 * component:  General => Editor


Comment:

 Thanks for the ticket sweman! I can reproduce this by doing what you
 described above.

 When I look at the text editor, a caption without markup looks like this
 (no matter how many times the post is saved):

 `[caption id="attachment_40" align="alignright" width="400"]<img class
 ="size-full wp-image-40" src="http://core.local.onedge.be/wp-
 content/uploads/2015/02/foo.gif" alt="Foo!" width="400" height="400" />
 Foo![/caption]`

 When an h3 tag the code looks the same, until you save it '''in the visual
 editor''':

 `[caption id="attachment_40" align="alignright" width="400"]<img class
 ="size-full wp-image-40" src="http://core.local.onedge.be/wp-
 content/uploads/2015/02/foo.gif" alt="Foo!" width="400" height="400"
 /><h3>Foo!</h3> [/caption]`

 And every time you save in the Visual editor, another ` ` gets added.

 When we do the same thing in the text editor, the problem does not present
 itself.
 So this looks like an issue within the Editor or even in TinyMCE?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31375#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list