修改 CKEditor Advanced 选项卡内容

Modify CKEditor Advanced tab contents

我正在使用 CKEditor,想修改 Advanced 选项卡的内容

我只希望显示样式输入,关于如何执行此操作有什么想法吗?

感谢所有帮助!

我解决了!

这里有一些代码可以帮助其他人:

    CKEDITOR.on('dialogDefinition', function (ev) {
    // Take the dialog window name and its definition from the event data.
    var dialogName = ev.data.name;
    var dialogDefinition = ev.data.definition;
    if (dialogName == 'link') {

        var advancedTab = dialogDefinition.getContents('advanced');
        var infoTab = dialogDefinition.getContents('info');
        var styleField = advancedTab.get('advStyle');
        advancedTab.remove();
        advancedTab.remove('advTitle');
        advancedTab.remove('advContentType');
        advancedTab.remove('advCSSClasses');
        advancedTab.remove('advCharset');
        advancedTab.remove('advRel');
        //var urlField = infoTab.get('url');
        //urlField['default'] = 'www.ireadhome.com'; //set default value for the url field
    }
});

将此代码粘贴到您的 config.js 中。希望对您有所帮助!