config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.html or http://ckeditor.com/license
  4. */
  5. CKEDITOR.editorConfig = function (config) {
  6. // Define changes to default configuration here. For example:
  7. // config.language = 'fr';
  8. // config.uiColor = '#AADC6E';
  9. //config.font_names = [];
  10. if ('undefined'!= typeof thinEditor && true === thinEditor) {
  11. config.toolbar = [
  12. [ 'Source', 'NewPage', 'Preview', 'Templates', 'Save' ], // Defines toolbar group with name (used to create voice label) and items in 3 subgroups.
  13. [ 'Undo', 'Redo' , 'Cut', 'Copy', 'PasteText','-', 'Paste', 'PasteFromWord', ], // Defines toolbar group without name.
  14. ['Image', 'HorizontalRule'],
  15. ['Maximize'],
  16. '/',
  17. [ 'Bold', 'Italic', 'Underline', 'Strike', '-' ,'Subscript', 'Superscript', 'RemoveFormat' ],
  18. ['Format'],
  19. ['FontSize'],
  20. ['TextColor', 'BGColor'],
  21. ['Link', 'Unlink', '-', 'Anchor'],
  22. ['NumberedList', 'BulletedList', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
  23. ]
  24. }
  25. config.filebrowserImageUploadUrl = window.location.href.replace(/\/\?r=([^\/]+)\/.*/, '/?r=$1/ckUpload');
  26. config.image_previewText = CKEDITOR.tools.repeat(' ', 1);
  27. config.disallowedContent = 'img{width,height}';
  28. };