WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #32920, comment 3


Ignore:
Timestamp:
07/16/2015 12:22:03 PM (6 years ago)
Author:
prionkor
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32920, comment 3

    v2 v3  
    22> We can make it behave like an image. The only problem is that there will be no theme that supports it.
    33
    4 Agreed. Most practical approach would be wrapping with `<p style="text-align: center/left/right">...</p>` on returned html. Just like any text block in the editor but iframe will act like block label element if we do that.
     4Theme must have styles for editor default classes right? For example if a theme doesn't have any css defined for `.alignleft`, `.alignright`, `.aligncenter`, `.alignnone` non of image alignment will work. It could be same for the iframe too.
     5
     6Most practical approach would be wrapping with `<p style="text-align: center/left/right">...</p>` on returned html. Just like any text block in the editor but iframe will act like block label element if we do that.