简体   繁体   English

如何在 tinymce 编辑器中更改内置工具栏图标的颜色(v 5.1.2)

[英]How do I change colour of inbuilt toolbar icons in tinymce editor(v 5.1.2)

I'm using some of the options provided by tinymce in toolbars like alignLeft, alignRight etc. which will display it in black color.我在 alignLeft、alignRight 等工具栏中使用 tinymce 提供的一些选项,这些选项将以黑色显示。 I want to just change the colour of the icon provided with it.我只想更改随它提供的图标的颜色。

Please let me know how to do it?请让我知道该怎么做?

PS My editor code: PS我的编辑器代码:

 <Editor
     init={{
            selector: "textarea",
            paste_data_images: true,
            automatic_uploads: true,
            plugins: [
              "lists table link image paste help wordcount code autoresize",
            ],
            toolbar:
              "undo redo | formatselect | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | image help",

          }}
 />

Simple with soms css简单带soms css

.tox .tox-tbtn svg {
    fill: #ff0000!important;
}

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

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