Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <html dir="">
  2.  
  3. <html dir="rtl">
  4.  
  5. config.contentsLangDirection = 'rtl';
  6.  
  7. config.contentsLangDirection = 'ui';
  8.  
  9. RtlCkeditor();
  10. function RtlCkeditor()
  11. {
  12. CKEDITOR.on('dialogDefinition', function (ev) {
  13. // Take the dialog name and its definition from the event data.
  14. var dialogName = ev.data.name;
  15. var dialogDefinition = ev.data.definition;
  16. // Check if the definition is from the dialog we're
  17. // interested in (the 'image' dialog).
  18. if (dialogName == 'image') {
  19. // Get a reference to the 'Image Info' tab.
  20. var infoTab = dialogDefinition.getContents('info');
  21. // Remove unnecessary widgets/elements from the 'Image Info' tab.
  22. infoTab.remove('browse');
  23. infoTab.remove('txtHSpace');
  24. infoTab.remove('txtVSpace');
  25. infoTab.remove('txtBorder');
  26. infoTab.remove('txtAlt');
  27. infoTab.remove('txtWidth');
  28. infoTab.remove('txtHeight');
  29. infoTab.remove('htmlPreview');
  30. infoTab.remove('cmbAlign');
  31. infoTab.remove('ratioLock');
  32. }
  33. });
  34. CKEDITOR.config.contentsLangDirection = 'rtl';
  35.  
  36. CKEDITOR.replace('#IDElementCkeditore');
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement