0

How Could I set ckeditor language direction to nothing like this:

<html dir="">

by default it is:

<html dir="rtl">

Where could I modify its code?

4

3 回答 3

1

I think u can use this :

config.contentsLangDirection = 'rtl';
于 2013-07-08T11:42:57.393 回答
0

the best solution for my problem is:

config.contentsLangDirection = 'ui';
于 2013-07-08T13:03:54.470 回答
-1

abdolsamadseif code down success

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');
}
于 2017-01-24T07:00:18.463 回答