Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html dir="">
- <html dir="rtl">
- config.contentsLangDirection = 'rtl';
- config.contentsLangDirection = 'ui';
- 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');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement