constant.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // export const host = 'http://192.168.50.20:8081';
  2. // export const host = "http://localhost:8091";
  3. export const debug = process.env.NODE_ENV !== 'production';
  4. export const editorDefaultSet = {
  5. menus: [
  6. "head", // 标题
  7. "bold", // 粗体
  8. "fontSize", // 字号
  9. "fontName",
  10. "underline",
  11. "strikeThrough",
  12. "indent",
  13. "lineHeight", // 行高
  14. "foreColor", // 文字颜色
  15. "backColor", // 背景颜色
  16. "list", // 列表
  17. "quote",
  18. "emoticon",
  19. "justify", // 对齐方式
  20. "undo", // 撤销
  21. "redo" // 重复
  22. ],
  23. fontNames: [
  24. '黑体',
  25. '仿宋',
  26. '楷体',
  27. '标楷体',
  28. '华文仿宋',
  29. '华文楷体',
  30. '宋体',
  31. '微软雅黑',
  32. 'Arial',
  33. 'Tahoma',
  34. 'Verdana',
  35. ],
  36. height: 400
  37. // uploadImgServer: "/source/srp/source/attachment/upload",
  38. // showLinkImg: false,
  39. // uploadFileName: "file",
  40. // uploadImgHooks: {
  41. // success: function(xhr, editor, result) {},
  42. // error: function(xhr, editor) {},
  43. // customInsert: function(insertImg, result, editor) {
  44. // insertImg(result.t.url);
  45. // }
  46. // }
  47. };