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



我在工具栏中使用了tinymce提供的一些选项,如alignLeft,alignRight等,这些选项将以黑色显示。我只想更改随附的图标的颜色。

请告诉我该怎么做?

附言我的编辑器代码:

<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

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

最新更新