Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/458.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使CKEditor插件stylesheetparser工作-编辑器.filter未定义_Javascript_Ckeditor_Wysiwyg - Fatal编程技术网

Javascript 使CKEditor插件stylesheetparser工作-编辑器.filter未定义

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

我试图让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.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
文件。