请教下关于CKEditor富文本编辑框设置字体颜色的问题
Posted karila
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了请教下关于CKEditor富文本编辑框设置字体颜色的问题相关的知识,希望对你有一定的参考价值。
CKEDITOR.editorConfig = function( config )
{
config.plugins = ‘about,a11yhelp,basicstyles,bidi,blockquote,clipboard,colorbutton,colordialog,contextmenu,dialogadvtab,div,elementspath,enterkey,entities,filebrowser,find,flash,floatingspace,font,format,forms,horizontalrule,htmlwriter,image,iframe,indentlist,indentblock,justify,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,preview,print,removeformat,resize,save,scayt,selectall,showblocks,showborders,smiley,sourcearea,specialchar,stylescombo,tab,table,tabletools,templates,toolbar,undo,wsc,wysiwygarea‘;
config.toolbarGroups = [
{ name: ‘document‘, groups: [ ‘mode‘, ‘document‘, ‘doctools‘ ] },
{ name: ‘clipboard‘, groups: [ ‘clipboard‘, ‘undo‘ ] },
{ name: ‘editing‘, groups: [ ‘find‘, ‘selection‘, ‘spellchecker‘ ] },
{ name: ‘forms‘ },
{ name: ‘links‘ },
{ name: ‘insert‘ },
‘/‘,
{ name: ‘basicstyles‘, groups: [ ‘basicstyles‘, ‘cleanup‘ ] },
{ name: ‘paragraph‘, groups: [ ‘list‘, ‘indent‘, ‘blocks‘, ‘align‘, ‘bidi‘ ] },
{ name: ‘styles‘ },
{ name: ‘colors‘ },
{ name: ‘tools‘ },
{ name: ‘others‘ },
{ name: ‘about‘ }
];
};
原文地址:https://zhidao.baidu.com/question/241519841297066324.html
以上是关于请教下关于CKEditor富文本编辑框设置字体颜色的问题的主要内容,如果未能解决你的问题,请参考以下文章