ueditor-config.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "imageActionName": "uploadimage",
  3. "imageFieldName": "upfile",
  4. "imageMaxSize": 2048000,
  5. "imageAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"],
  6. "imageCompressEnable": true,
  7. "imageCompressBorder": 1600,
  8. "imageInsertAlign": "none",
  9. "imageUrlPrefix": "",
  10. "localSavePathPrefix":"/www/files/data/upload",
  11. "imagePathFormat": "/{yyyy}/{mm}/{dd}/{time}{rand:6}",
  12. "scrawlActionName": "uploadscrawl",
  13. "scrawlFieldName": "upfile",
  14. "scrawlPathFormat": "/{yyyy}/{mm}/{dd}/{time}{rand:6}",
  15. "scrawlMaxSize": 2048000,
  16. "scrawlUrlPrefix": "",
  17. "scrawlInsertAlign": "none",
  18. "snapscreenActionName": "uploadimage",
  19. "snapscreenPathFormat": "/{yyyy}/{mm}/{dd}/{time}{rand:6}",
  20. "snapscreenUrlPrefix": "",
  21. "catcherLocalDomain": ["127.0.0.1", "localhost", "img.baidu.com"],
  22. "catcherActionName": "catchimage",
  23. "catcherFieldName": "source",
  24. "catcherPathFormat": "/{yyyy}/{mm}/{dd}/{time}{rand:6}",
  25. "catcherUrlPrefix": "",
  26. "catcherMaxSize": 2048000,
  27. "catcherAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"],
  28. "catchRemoteImageEnable": false,
  29. "videoActionName": "uploadvideo",
  30. "videoFieldName": "upfile",
  31. "videoPathFormat": "/{yyyy}/{mm}/{dd}/{time}{rand:6}",
  32. "videoUrlPrefix": "",
  33. "videoMaxSize": 102400000,
  34. "videoAllowFiles": [
  35. ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
  36. ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"],
  37. "fileActionName": "uploadfile",
  38. "fileFieldName": "upfile",
  39. "filePathFormat": "/{yyyy}/{mm}/{dd}/{time}{rand:6}",
  40. "fileUrlPrefix": "",
  41. "fileMaxSize": 51200000,
  42. "fileAllowFiles": [
  43. ".png", ".jpg", ".jpeg", ".gif", ".bmp",
  44. ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
  45. ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
  46. ".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
  47. ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"
  48. ],
  49. "imageManagerActionName": "listimage",
  50. "imageManagerListPath": "/",
  51. "imageManagerListSize": 20,
  52. "imageManagerUrlPrefix": "",
  53. "imageManagerInsertAlign": "none",
  54. "imageManagerAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"],
  55. "fileManagerActionName": "listfile",
  56. "fileManagerListPath": "/",
  57. "fileManagerUrlPrefix": "",
  58. "fileManagerListSize": 20,
  59. "fileManagerAllowFiles": [
  60. ".png", ".jpg", ".jpeg", ".gif", ".bmp",
  61. ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
  62. ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
  63. ".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
  64. ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"
  65. ]
  66. }