CKEditor4在config.js中带有自定义工具栏

时间:2018-08-02 09:55:59

标签: ckeditor

我实际上正在使用CKEditor 4完整软件包。

试图使我的config.js工作正常...

这是我的一部分代码:

/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/

CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
config.language = 'fr';
config.uiColor = '#E6F7FF';
config.toolbar = 'POIPOI';
};

CKEDITOR.config.toolbar_POIPOI = [
    { name: 'annulations', items : ['Undo','Redo'] },
    { name: 'presse-papier', items : ['Cut','Copy','Paste'] },
    { name: 'styles', items : ['Bold', 'Italic', 'Subscript', 'Superscript', 'RemoveFormat'] },
    { name: 'liens', items : ['Link', 'Unlink'] },
    { name: 'blocs', items : [ 'Blockquote', 'BulletedList', 'Table'] },
    { name: 'outils', items : ['Source'] }
];

CKEDITOR.config.allowedContent = true;

请问这个文件怎么了?

将尝试添加自定义配置文件。但是,如果有人知道配置文件的解决方案?

0 个答案:

没有答案
相关问题