[wp-trac] [WordPress Trac] #32920: Centering iFrames using visual editor

WordPress Trac noreply at wordpress.org
Wed Jul 8 11:32:55 UTC 2015


#32920: Centering iFrames using visual editor
--------------------------+-----------------------------
 Reporter:  prionkor      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.2.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When we need to put a video embed code into editor, we use the text editor
 put the video html then switch back to visual editor.

 Visual editor does great job to resize video by dragging the placeholder
 which means to represent the video.

 But when I select the placeholder and hit text align (left, right or
 center) the placeholder acts as if it is aligning itself accordingly (by
 adding `.alignleft`, `.alignright`, `.aligncenter` classes). If I hit save
 then preview the changes. No alignment happens.

 So, either the iframe should be wrapped with a `<p>` tag with css text
 align. For example for center alignment of the video should create html
 like.


 {{{
 <p style="text-align:center">
     <iframe>
         ...
     </iframe>
 </p>

 }}}

 and so on..

 Or the alignment classes should not be added to make impression that video
 is actually aligning, it gives wrong visual feedback.

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


More information about the wp-trac mailing list