[wp-trac] [WordPress Trac] #24968: $content_width not constraining images in fullscreen editor

WordPress Trac noreply at wordpress.org
Fri Aug 9 12:45:39 UTC 2013


#24968: $content_width not constraining images in fullscreen editor
--------------------------+------------------------------
 Reporter:  saltcod       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by saltcod):

 When in fullscreen mode in the Visual tab, if you insert an image via the
 Media box, it will automatically get the size-auto, size-full, etc
 classes, and have the size constrained:


 {{{
 img.size-auto, img.size-large, img.size-full, img.size-medium {
 max-width: 100%;
 height: auto;
 }
 }}}

 If you strip out the classes or enter it manually {{{ <img
 src="http://example.com/wp-content/uploads/2013/02/image.jpg" />}}} the
 size won't be constrained. This feels like an edge case even as I type
 this, but I run into it all the time, and it should be easy to fix.

 Wouldn't this fix the issue?


 {{{
 #wp-fullscreen-editor img {
 max-width: 60%;
 height: auto;
 }
 }}}


 Thanks guys!

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


More information about the wp-trac mailing list