自定义CKEditor工具栏在IE8中不起作用

时间:2013-10-10 15:15:10

标签: javascript jquery internet-explorer-8 ckeditor

我正在尝试自定义CKEditor的实例。它适用于Chrome,但它不会出现在IE中。这是我正在使用的代码:

function addEditor(div) {

CKEDITOR.inline(div, {
    extraPlugins: 'sharedspace',
    removePlugins: 'floatingspace,resize',
    sharedSpaces: {
        top: 'ckToolbar',
    },

    toolbar: [
        { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source' ] },
        { name: 'clipboard', groups: [ 'undo' ], items: ['Undo', 'Redo' ] },
        { name: 'editing', groups: [ 'find' ], items: [ 'Find' ] },
        { name: 'basicstyles', groups: [ 'basicstyles' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'] },
        { name: 'paragraph', groups: [ 'list', 'indent', 'align' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
        { name: 'links', items: [ 'Link', 'Unlink' ] },
        { name: 'insert', items: ['Table'] },
        { name: 'styles', items: [ 'Font', 'FontSize' ] },
        { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
    ]

});

$("#ckWrapper").show();
}

这给了我自定义的工具栏。但是,它没有出现在IE中。当我取出自定义并仅保留此代码时,它会显示完整的工具栏:

function addEditor(div) {

CKEDITOR.inline(div, {
    extraPlugins: 'sharedspace',
    removePlugins: 'floatingspace,resize',
    sharedSpaces: {
        top: 'ckToolbar',
    },

});

$("#ckWrapper").show();
}

为什么我的自定义没有出现在IE8中?

感谢。

0 个答案:

没有答案