[wp-trac] [WordPress Trac] #37238: Right-aligned captions with embedded iframes get removed in Visual mode

WordPress Trac noreply at wordpress.org
Wed Jun 29 20:43:14 UTC 2016


#37238: Right-aligned captions with embedded iframes get removed in Visual mode
-------------------------------+-----------------------------
 Reporter:  ChrisBAshton       |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  4.5.3
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 This has affected a client site a couple of times now so I thought I'd
 better share it and see if this is a bug or if there is something we are
 doing fundamentally wrong.

 If you are working in Text mode and you end up creating a caption, right-
 aligning it and embedding an iframe within the caption shortcode, as
 follows...

 {{{
 [caption width="350" class="alignright" caption="Ria Ritchie's latest
 video on YouTube"]<iframe width="350" height="197" class="alignright"
 src="https://www.youtube.com/embed/_W9f5onA6nc?rel=0&showinfo=0"
 frameborder="0" allowfullscreen></iframe>[/caption]
 }}}

 ...if anyone comes along in Visual mode they can see the embedded iframe
 right-aligned and with the caption below it. If they make a change to any
 part of the post and hit 'Update', the caption and iframe get removed, but
 the caption text remains (without any surrounding markup).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37238>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list