config_js.tpl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Ckeditor global configuration file */
  2. CKEDITOR.editorConfig = function (config) {
  3. // Define changes to default configuration here.
  4. // For complete reference see:
  5. // http://docs.ckeditor.com/#!/api/CKEDITOR.config
  6. // Remove some buttons provided by the standard plugins, which are
  7. // not needed in the Standard(s) toolbar.
  8. //config.removeButtons = 'Underline,Subscript,Superscript';
  9. // Set the most common block elements.
  10. config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre';
  11. // Simplify the dialog windows.
  12. config.removeDialogTabs = 'image:advanced;link:advanced';
  13. config.templates_files = [
  14. '{{ _p.web_main ~ 'inc/lib/elfinder/templates.php'}}'
  15. ];
  16. {% if moreButtonsInMaximizedMode %}
  17. config.toolbar = 'minToolbar';
  18. config.smallToolbar = 'minToolbar';
  19. config.maximizedToolbar = 'maxToolbar';
  20. {% endif %}
  21. // File manager (elFinder)
  22. config.filebrowserBrowseUrl = '{{ _p.web_lib ~ 'elfinder/filemanager.php' }}';
  23. // Allows to use "class" attribute inside divs and spans.
  24. config.allowedContent = true;
  25. config.customConfig = '{{ _p.web_main ~ 'inc/lib/javascript/ckeditor/config_js.php'}}';
  26. };