为自定义包添加下划线

Add underline to customized package

我正在使用 CKEditor (v. 4.4.7) 并试图包含下划线功能。完整包的按钮比我的用户需要的多,标准包不包含此按钮。我使用构建器进行自定义。我从标准页面开始并添加(或者可能已经存在)"Basic Styles",在描述中说:

"This plugin adds the following basic formatting commands to the editor:

Bold
Italic
Underline
Strikethrough
Subscript
Superscript
"

当我在我的代码中 运行 编辑器时,我只得到粗体、斜体和删除线。没有下划线(或下标或上标,就此而言)。我需要做什么才能获得其他功能?

我的配置文件:

    /**
  * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben.       All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// 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: 'document',    groups: [ 'mode', 'document', 'doctools' ] },
    { name: 'others' },
    '/',
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
    { name: 'styles' },
    { name: 'colors' },
    { name: 'about' }
];

// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';

// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';

// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
};

谢谢。

您是否尝试阅读您粘贴的配置?它说:

// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';

我希望这足以回答 ;)。