简体   繁体   English

有没有办法改变Trumbowyg编辑器的背景?

[英]Is there a way to change the Trumbowyg editor background?

I have some text in boxes where the text is supposed to be white. 我在文本应该为白色的框中有一些文本。

This makes the text white in the WYSIWYG as well. 这也使所见即所得中的文本也变白。 Might seem straightforward but the WYSIWYG text box also has white background default so the box looks empty. 可能看起来很简单,但是“所见即所得”文本框也默认具有白色背景,因此该框看起来是空的。

Is there a way to change the WYSIWYG editor background to the background that is most commonly used for transparant images? 是否可以将“所见即所得”编辑器背景更改为最常用于透明图像的背景? Or what would the correct approach be to resolve this? 还是解决该问题的正确方法是什么?

Adding a chess-pattern to the background of the editor did the trick for me. 在编辑器的背景中添加国际象棋图案对我来说很成功。

I generated the pattern using patternify which gives me something like this to add to my css: 我使用patternify生成了模式,这使我可以将以下内容添加到CSS中:

background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAHElEQVQYV2NkYGAwZmBgOMsABYwwBjYBsEoMFQBQhgIF9JIf4wAAAABJRU5ErkJggg==) repeat;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM