【问题标题】:Not all toolbar items seem to work in ckeditor inline并非所有工具栏项似乎都可以在 ckeditor inline 中使用
【发布时间】:2019-06-11 06:59:40
【问题描述】:

在内联模式下使用 ckeditor 并非所有标准配置项都显示出来,例如对齐项目。对齐在我应该认为的内联模式下有意义吗?

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';
};

【问题讨论】:

    标签: ckeditor inline


    【解决方案1】:

    看起来您使用的是标准预设,而 Bidi plugin 仅在完整预设中可用。您需要使用完整预设或将此插件添加到您的预设中(手动或通过online builder)-https://ckeditor.com/docs/ckeditor4/latest/guide/dev_plugins.html

    【讨论】:

      猜你喜欢
      • 2019-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-02
      • 2010-10-16
      • 1970-01-01
      • 2012-11-16
      相关资源
      最近更新 更多