星火管控前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.js 2.3KB

9 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. CKEDITOR.editorConfig = function(config) {
  2. config.toolbarGroups = [
  3. { name: "document", groups: ["mode", "document", "doctools"] },
  4. { name: "clipboard", groups: ["clipboard", "undo"] },
  5. {
  6. name: "editing",
  7. groups: ["find", "selection", "spellchecker", "editing"]
  8. },
  9. { name: "forms", groups: ["forms"] },
  10. { name: "basicstyles", groups: ["basicstyles", "cleanup"] },
  11. {
  12. name: "paragraph",
  13. groups: ["list", "indent", "blocks", "align", "bidi", "paragraph"]
  14. },
  15. { name: "links", groups: ["links"] },
  16. { name: "insert", groups: ["insert"] },
  17. // "/",
  18. { name: "styles", groups: ["styles"] },
  19. { name: "colors", groups: ["colors"] },
  20. { name: "tools", groups: ["tools", "SimpleUpload"] },
  21. { name: "others", groups: ["others"] },
  22. { name: "about", groups: ["about"] }
  23. ];
  24. config.removeButtons =
  25. "Source,Save,NewPage,ExportPdf,Preview,Print,Templates,Cut,Copy,Find,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CreateDiv,Blockquote,Language,Link,Unlink,Anchor,Flash,Smiley,PageBreak,Iframe,ShowBlocks,Maximize,About,Paste,PasteText,PasteFromWord,Undo,Redo,Replace,SelectAll,CopyFormatting,RemoveFormat,Styles,Format,Font,FontSize,TextColor,BGColor,NumberedList,BulletedList,Outdent,Indent,BidiLtr,BidiRtl,Table,HorizontalRule,SpecialChar,Image";
  26. config.language = "zh-cn";
  27. config.image_previewText = " ";
  28. config.exportPdf_tokenUrl = " ";
  29. // config.disallowedContent = 'img{width,height};img[width,height]';//强制禁用img标签的style以及widht/height属性
  30. config.removeDialogTabs = "html5video:advanced;image:advanced;image:Link;image:Upload;image2:Upload"; //隐藏“超链接”与“高级选项”只留上传和预览按钮
  31. config.extraPlugins = "image2,simpleupload,editorplaceholder";
  32. config.filebrowserImageUploadUrl = " "; //上传图片的服务器地址
  33. config.filebrowserHtml5videoUploadUrl = " "; //上传视频的服务器地址";
  34. config.removePlugins = "elementspath,image"; //隐藏左下角提示
  35. config.allowedContent = true; //允许所有标签
  36. //保证word导入格式
  37. config.pasteFromWordRemoveFontStyles = false;
  38. config.pasteFromWordRemoveStyles = false;
  39. //是否强制复制来的内容去除格式
  40. config.forcePasteAsPlainText = false; //不去除
  41. };