#31062 closed enhancement (wontfix)
MCE White image with transparency, add checkerboard
Reported by: | drrobotnik | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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)
Change History (8)
#3
@
10 years ago
- Description modified (diff)
This seems like something that should be handled by theme's editor-style.css
file.
#5
@
10 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.
opacity checkerboard img background