config.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. 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. { groups: ['undo' ] },
  12. { name: 'styles'},
  13. { name: 'basicstyles', groups: [ 'basicstyles'] },
  14. { name: 'paragraph', groups: [ 'list','align'] },
  15. { name: 'insert' },
  16. ];
  17. // Remove some buttons provided by the standard plugins, which are
  18. // not needed in the Standard(s) toolbar.
  19. config.removeButtons = 'Underline,Subscript,Superscript';
  20. // Set the most common block elements.
  21. config.format_tags = 'p;h1;h2;h3;pre';
  22. // Simplify the dialog windows.
  23. config.removeDialogTabs = 'image:advanced;link:advanced';
  24. config.image_previewText=' '; //预览区域显示内容
  25. config.filebrowserImageUploadUrl= "test_photo"; //待会要上传的action或servlet 图片上传地址
  26. config.filebrowserImageBrowseUrl= ""; //待会要上传的action或servlet 图片上传地址
  27. config.filebrowserFlashUploadUrl = 'video_upload';//定义flash上传的地址, 是上图的CkeditorUploadAction.java.
  28. config.filebrowserFlashBrowseUrl = '';//定义flash的 浏览服务器窗口
  29. };