config.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
  3. * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. CKEDITOR.editorConfig = function( config ) {
  6. // Define changes to default configuration here.
  7. // For complete reference see:
  8. // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
  9. // The toolbar groups arrangement, optimized for two toolbar rows.
  10. config.toolbarGroups = [
  11. { name: 'tools', groups: [ 'tools' ] },
  12. { name: 'clipboard', groups: [ 'undo', 'clipboard' ] },
  13. { name: 'links', groups: [ 'links' ] },
  14. { name: 'insert', groups: [ 'insert' ] },
  15. { name: 'basicstyles', groups: [ 'cleanup', 'basicstyles' ] },
  16. { name: 'colors', groups: [ 'colors' ] },
  17. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
  18. { name: 'forms', groups: [ 'forms' ] },
  19. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
  20. '/',
  21. { name: 'styles', groups: [ 'styles' ] },
  22. { name: 'others', groups: [ 'others' ] },
  23. { name: 'about', groups: [ 'about' ] },
  24. { name: 'document', groups: [ 'document', 'doctools', 'mode' ] }
  25. ];
  26. // Remove some buttons provided by the standard plugins, which are
  27. // not needed in the Standard(s) toolbar.
  28. config.removeButtons = 'About,ShowBlocks,BidiLtr,BidiRtl,Language,Anchor,PageBreak,Iframe,Save,NewPage,ExportPdf,Preview,Print,Templates,Cut,Copy,Paste,PasteText,PasteFromWord,Find,Replace,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Blockquote,CreateDiv';
  29. // Set the most common block elements.
  30. config.format_tags = 'p;h1;h2;h3;pre';
  31. // Simplify the dialog windows.
  32. config.removeDialogTabs = 'image:advanced;link:advanced';
  33. config.extraPlugins += (config.extraPlugins ? ',lineheight' : 'lineheight');
  34. config.allowedContent = true;
  35. config.filebrowserUploadUrl = "https://api.mitopowder.online/upload/admin"
  36. };