如何将ckeditor语言方向设置为这样:
<html dir="">
默认情况下是:
<html dir="rtl">
我可以在哪里修改其代码?
答案 0 :(得分:1)
我想你可以使用this:
config.contentsLangDirection = 'rtl';
答案 1 :(得分:0)
我的问题的最佳解决方案是:
config.contentsLangDirection = 'ui';
答案 2 :(得分:-1)
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');
}