如何在CKEditor的表对话框窗口的高级选项卡中删除默认样式设置?

时间:2018-08-08 16:40:26

标签: ckeditor4.x

我正在尝试在此处的样式字段中删除默认设置。我成功地获得了选项卡和字段的引用,但是没有发现在任何地方都设置了默认样式。我在哪里可以更改它?谢谢

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

        // Check if the definition is from the dialog window you are interested in
        if (dialogName == 'table') {
            // Advanced Tab
            var more = dialogDefinition.getContents('advanced');

            more.get('advStyles')['default'] = "";

        }
    });

enter image description here

0 个答案:

没有答案