[wp-trac] [WordPress Trac] #31253: Images should be forced to fit inside the editor

WordPress Trac noreply at wordpress.org
Tue Mar 24 12:30:37 UTC 2015


#31253: Images should be forced to fit inside the editor
--------------------------+------------------------
 Reporter:  iseulde       |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.2
Component:  TinyMCE       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------

Comment (by iseulde):

 > I think the issue is partially that $content_width defines the width as
 part of or in conjunction with themes' editor stylesheets, so would
 artificially constraining media to visible in the editor viewport mess too
 much with that?

 No, width 100% obeys the width of the body.

 An argument against doing this is that the theme might not set this on the
 front end and surprise the user. I still think we should do this because

 1) most themes do force the image to fit on the front end and forget to do
 this in the editor (even our default themes since [31849]),
 2) it's a really bad writing experience,
 3) the theme does not need to provide any styles, so the defaults should
 be good, and
 4) the editor can be used for things other than the post content.

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


More information about the wp-trac mailing list