0

我在使用 Outsystems 开发的应用程序中使用 CKEditor。我需要更改 CKEditor 提供的当前视图。(它具有保存数据、使其斜体、粗体等的 GUI 选项)。我需要删除这些选项或禁用它们。

有什么提示吗?

谢谢 !

4

1 回答 1

1

开发人员指南中有很好的建议,但这是我使用的:

在你的 config.js

config.toolbar = 'Mine';
config.toolbar_Mine =
[
    { name: 'document', items: ['Source', '-', 'Save', 'NewPage', 'DocProps', '-', 'Templates'] },
    { name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
    { name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-', 'SpellChecker', 'Scayt'] },
    '/',
    { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'CreateDiv',
    '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']
    },
    { name: 'links', items: ['Link', 'Unlink', 'Doxtest'] },
    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] },
    '/',
    { name: 'styles', items: ['Styles', 'Format', 'FontSize'] },
    { name: 'colors', items: ['TextColor', 'BGColor'] },
    { name: 'tools', items: ['Maximize', 'ShowBlocks'] },
    { name: 'ponify', items: ['InsertMagicalPony'] }
];

然后只需添加/删除您需要的任何内容。请注意{ name: 'ponify', items: ['InsertMagicalPony'] },例如,您可能没有。

于 2012-10-15T10:29:12.123 回答