config.js 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or http://ckeditor.com/license
  4. */
  5. CKEDITOR.editorConfig = function( config ) {
  6. // %REMOVE_START%
  7. // The configuration options below are needed when running CKEditor from source files.
  8. config.plugins = 'inject,basicstyles,oembed,dialogui,dialog,about,a11yhelp,dialogadvtab,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,floatingspace,listblock,richcombo,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,justify,menubutton,link,list,liststyle,magicline,maximize,newpage,newPlugin,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,stylescombo,tab,table,tabletools,undo,lineutils,widget,notification,onchange,tweetabletext,chart,blockquote,specialchar,persone';
  9. // config.extraPlugins = 'autosave';
  10. config.extraPlugins = 'wordcount,polls,twinimg,figure,bootstrapMediaEmbed';
  11. config.locationMapPath = '/widget/';
  12. // config.extraPlugins = 'powrsocialfeed';
  13. config.wordcount = {
  14. // Whether or not you want to show the Word Count
  15. showWordCount: true,
  16. // Whether or not you want to show the Char Count
  17. showCharCount: true,
  18. // Maximum allowed Word Count
  19. // maxWordCount: 4,
  20. // Maximum allowed Char Count
  21. // maxCharCount: 10
  22. countSpacesAsChars: true,
  23. };
  24. config.skin = 'moono';
  25. //config.toolbar_Full.push(['newPlugin']);
  26. // %REMOVE_END%
  27. config.disableNativeSpellChecker = false;
  28. // Define changes to default configuration here. For example:
  29. config.extraAllowedContent = 'a[data-lightbox,data-title,data-lightbox-saved]'; // lightbox
  30. config.language = 'ru';
  31. // config.uiColor = '#AADC6E';
  32. // config.extraPlugins='audio';
  33. config.basicEntities = true;
  34. config.entities = false;
  35. // config.entities_additional = '"#34,#39';
  36. config.tabSpaces = 0
  37. config.colorButton_enableMore = true;
  38. // config.enterMode = CKEDITOR.ENTER_BR; //non auto paragraph
  39. config.allowedContent = true;
  40. config.forcePasteAsPlainText = false;
  41. config.pasteFilter = 'h2 ul ol li; img[!src, alt]; a[!href]';
  42. config.pasteFromWordRemoveStyles = true;
  43. config.templates_replaceContent = false;
  44. config.chart_configBar = { animation: true };
  45. config.chart_maxItems = 12;
  46. config.fillEmptyBlocks = true;
  47. config.chart_colors =
  48. {
  49. // Colors for Bar/Line chart.
  50. fillColor: 'rgba(151,187,205,0.5)',
  51. strokeColor: 'rgba(151,187,205,0.8)',
  52. highlightFill: 'rgba(151,187,205,0.75)',
  53. highlightStroke: 'rgba(151,187,205,1)',
  54. // Colors for Doughnut/Pie/PolarArea charts.
  55. data: [ '#6b8cab', '#2c62a0', '#00b5b0', '#71B232', '#33B22D', '#31B272', '#2DB5B5', '#3172B6', '#3232B6', '#6E31B2', '#B434AF', '#B53071' ]
  56. }
  57. // config.filebrowserImageBrowseUrl = '/admin/ckeditor/kcfinder/browse.php?type=images';
  58. config.toolbarGroups = [
  59. { name: 'document', groups: [ 'mode', 'doctools', 'document' ] },
  60. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
  61. { name: 'forms', groups: [ 'forms' ] },
  62. { name: 'tools', groups: [ 'tools' ] },
  63. '/',
  64. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  65. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  66. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'paragraph', 'figure' ] },
  67. '/',
  68. { name: 'styles', groups: [ 'styles' ] },
  69. { name: 'colors', groups: [ 'colors' ] },
  70. { name: 'insert', groups: [ 'insert','bootstrapMediaEmbed' ] },
  71. { name: 'links', groups: [ 'links' ] },
  72. { name: 'others', groups: [ 'others' ] },
  73. { name: 'about', groups: [ 'about' ] }
  74. ];
  75. config.removeButtons = 'About,NewPage,Save';
  76. config.format_tags = 'p;h2;h3;h4;h5;h6;div';
  77. config.font_names = 'PT Serif;Roboto Condensed;Fira Sans;serif;Arial;Times New Roman;Verdana;Tahoma;sans-serif';
  78. // config.contentsCss = '/components/admin/css/ckeditor/person-inject.css';
  79. };
  80. /*CKEDITOR.stylesSet.add( 'default',
  81. [
  82. { name : 'Разрыв строки', element : 'div', attributes : { 'class' : 'clearing' } },
  83. { name : 'Texto Explicacion Servicio', element : 'div', attributes : { 'class' : 'texto_explicacion_servicio' } },
  84. { name : 'Texto Fondo Foto', element : 'div', attributes : { 'class' : 'intro_fondo_foto' } }
  85. ]);
  86. */