CKEditor:文本颜色和背景颜色的不同调色板可能? [英] CKEditor: Different color palettes for Text Color and Background Color possible?
问题描述
我使用CKEditor(v3.6.4),并尝试了解如何分别更改文字颜色和背景颜色的调色板。
I am using CKEditor (v3.6.4) and try to find out how to change the palettes for Text Color and Background Color separately.
我在 config.colorButton_colors ckeditor_api / symbols / CKEDITOR.config.html#.colorButton_colorsrel =nofollow> docs ,它允许我定义调色板。但是,此调色板分配给文本和背景。
I found config.colorButton_colors
in the docs which allows me to define the color palette. However, this palette is assigned to both, text and background.
如何使用两个不同的调色板?
How can I have two different palettes?
推荐答案
因为调色板是为文本颜色和背景定义的。
You can't do that because the color palette is defined for the text color and background.
CKEDITOR.config.colorButton_colors =
'000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,' +
'B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,' +
'F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,' +
'FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,' +
'FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF';
或者,您可以更改文字颜色插件:)
Or you can change the Text Color plugin :)
这篇关于CKEditor:文本颜色和背景颜色的不同调色板可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!