CKeditor语言方向



我如何将ckeditor语言方向设置为这样的方向:

<html dir="">

默认情况下为:

<html dir="rtl">

我在哪里可以修改它的代码?

我认为你可以使用这个:

config.contentsLangDirection = 'rtl';

我的问题的最佳解决方案是:

config.contentsLangDirection = 'ui';

abdolsamadseif代码关闭成功

RtlCkeditor();
function RtlCkeditor() {
    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 we're
        // interested in (the 'image' dialog).
        if (dialogName == 'image') {
            // Get a reference to the 'Image Info' tab.
            var infoTab = dialogDefinition.getContents('info');
            // Remove unnecessary widgets/elements from the 'Image Info' tab.
            infoTab.remove('browse');
            infoTab.remove('txtHSpace');
            infoTab.remove('txtVSpace');
            infoTab.remove('txtBorder');
            infoTab.remove('txtAlt');
            infoTab.remove('txtWidth');
            infoTab.remove('txtHeight');
            infoTab.remove('htmlPreview');
            infoTab.remove('cmbAlign');
            infoTab.remove('ratioLock');
        }
    });
    CKEDITOR.config.contentsLangDirection = 'rtl';
    CKEDITOR.replace('#IDElementCkeditore');
}

最新更新