[wp-trac] [WordPress Trac] #31062: MCE White image with transparency, add checkerboard

WordPress Trac noreply at wordpress.org
Tue Jan 20 07:25:34 UTC 2015


#31062: MCE White image with transparency, add checkerboard
-------------------------+------------------------------
 Reporter:  drrobotnik   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  TinyMCE      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  accessibility
-------------------------+------------------------------

Old description:

> The Default MCE editor has a white background. Your site may have a dark
> background, so if you upload a white image you can hardly see it in the
> editor. This could be fixed pretty easily with a css pseudo selector.
>
>         .mce-content-body img {
>         background:
> url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAJElEQVQYV2M8c+bMfwYkYGJiwojMZ6SDAmT7QGx0K1EcRBsFAIEqHZXwisJ7AAAAAElFTkSuQmCC);
>         }

New description:

 The Default MCE editor has a white background. Your site may have a dark
 background, so if you upload a white image you can hardly see it in the
 editor. This could be fixed pretty easily with a css pseudo selector.
 {{{
 .mce-content-body img {
         background:
 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAJElEQVQYV2M8c+bMfwYkYGJiwojMZ6SDAmT7QGx0K1EcRBsFAIEqHZXwisJ7AAAAAElFTkSuQmCC);
 }
 }}}

--

Comment (by SergeyBiryukov):

 This seems like something that should be handled by theme's `editor-
 style.css` file.

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


More information about the wp-trac mailing list