ueditor.config.js 611 B

1234567891011121314151617181920212223
  1. /**
  2. * ueditor 配置
  3. */
  4. import { serverUrl, fileUrl } from '@/api/platform/file/ueditor'
  5. const config = function() {
  6. return {
  7. UEDITOR_HOME_URL: `${process.env.BASE_URL}lib/UEditor/`,
  8. // TODO: 如果需要上传功能,找后端小伙伴要服务器接口地址
  9. serverUrl: serverUrl(),
  10. fileServerUrl: fileUrl(), // 附件上传
  11. // 编辑器不自动被内容撑高
  12. autoHeightEnabled: false,
  13. // 初始容器高度
  14. initialFrameHeight: 360,
  15. // 初始容器宽度
  16. initialFrameWidth: '100%',
  17. // 关闭自动保存
  18. enableAutoSave: false
  19. }
  20. }
  21. export default config