Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#31062 closed enhancement (wontfix)

MCE White image with transparency, add checkerboard

Reported by: drrobotnik's profile drrobotnik Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2
Component: TinyMCE Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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);
}

Attachments (1)

opacity-checkerboard.patch (653 bytes) - added by drrobotnik 9 years ago.
opacity checkerboard img background

Download all attachments as: .zip

Change History (8)

@drrobotnik
9 years ago

opacity checkerboard img background

#1 @drrobotnik
9 years ago

If base64 is an issue, you could swap it out for a simple graphic.

#2 @KalenJohnson
9 years ago

Doesn't this bloat the CSS somewhat?

#3 @SergeyBiryukov
9 years ago

  • Description modified (diff)

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

#4 @drrobotnik
9 years ago

Feels like a good enhancement for core to me.

#5 @helen
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I don't think this is a good enhancement for core - it will cause the WYSIWYG display to not actually represent what the result will be. What happens if I'm putting a transparent PNG on a light background because I want it that way? I would see that background for no good reason. If your site has a dark background, the editor style should reflect that. If you'd rather compose on a light background (perfectly understandable), then the editor style can add the background.

#6 @drrobotnik
9 years ago

I'm fine with this.

Edited: Forget that last bit.

Last edited 9 years ago by drrobotnik (previous) (diff)

#7 @joedolson
9 years ago

  • Focuses accessibility removed
Note: See TracTickets for help on using tickets.