如何使用调色板更改CKEditor中容器的背景颜色
How to change the background color of container in CKEditor with color palette
如何使用 colors.I 列表中的内联 ckeditor 更改容器的颜色知道我们有 "colorbutton" 插件来更改块元素的文本颜色和背景颜色,但我需要更改整个容器的颜色。
Here is the image about my requirement
修改了colorbutton按钮ckeditor插件。
在 renderColors() 方法中添加以下条件。
if(type != 'back'){
editor.applyStyle( new CKEDITOR.style( colorStyle, { color: color } ) );
}else{
editor.container.$.style.backgroundColor=color;
}
如何使用 colors.I 列表中的内联 ckeditor 更改容器的颜色知道我们有 "colorbutton" 插件来更改块元素的文本颜色和背景颜色,但我需要更改整个容器的颜色。 Here is the image about my requirement
修改了colorbutton按钮ckeditor插件。 在 renderColors() 方法中添加以下条件。
if(type != 'back'){
editor.applyStyle( new CKEDITOR.style( colorStyle, { color: color } ) );
}else{
editor.container.$.style.backgroundColor=color;
}