簡體   English   中英

如何在 tinymce 編輯器中更改內置工具欄圖標的顏色(v 5.1.2)

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

我在 alignLeft、alignRight 等工具欄中使用 tinymce 提供的一些選項,這些選項將以黑色顯示。 我只想更改隨它提供的圖標的顏色。

請讓我知道該怎么做?

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",

          }}
 />

簡單帶soms css

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM