Javascript 使CKEditor插件stylesheetparser工作-编辑器.filter未定义
我试图让stylesheetparser工作,但得到错误“editor.filter未定义” 这是我的config.js文件:Javascript 使CKEditor插件stylesheetparser工作-编辑器.filter未定义,javascript,ckeditor,wysiwyg,Javascript,Ckeditor,Wysiwyg,我试图让stylesheetparser工作,但得到错误“editor.filter未定义” 这是我的config.js文件: CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. // For the complete reference: // http://docs.ckeditor.com/#!/api/CKEDITOR.confi
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'colors' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
{ name: 'styles' },
{ name: 'about' }
];
config.extraPlugins = 'stylesheetparser';
config.contentsCss = 'editor_new.css';
// Remove some buttons, provided by the standard plugins, which we don't
// need to have in the Standard(s) toolbar.
config.removeButtons = '';
};
我不能复制这个。看,它很好用。尽管如此,这可能是由CKEditor包的配置引起的。你包括了哪些插件?我想是默认的。我通过将我的样式放在默认样式表中暂时修复了它。默认包(既不是标准的,也不是完整的)不包含样式表解析器插件。请从主CKEditor目录中附加
build config.js
文件。