Replies: 2 comments 1 reply
-
0b051fd 中添加了对 Word 文档导入时的限制,文件上传和和文档导入概念是不同的。之前限制在 5MB 是因为文档过大导入后可能会有性能问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
感谢您的回复,受宠若惊,但是我应该怎样修改本地部署的代码来打开这个限制,
***@***.***/editor目录下,文件dist/umo-editor.js源码中,修改相应的判断部分,
a(), o(async (l) => {
var v, f, m, g, h, y, b, _, w;
const [i] = Array.from(l ?? []);
if (!i)
return;
if (i.size > 1024 * 1024 * 50) {
ft("error", re("base.importWord.limitSize"));
return;
}
不能生效,这是为什么呢,百思不得其解,万望大神解惑,垂手再拜
…________________________________
发件人: Umo Team ***@***.***>
已发送: 2025 年 5 月 21 日 星期三 9:59
收件人: umodoc/editor ***@***.***>
抄送: endleaves ***@***.***>; Author ***@***.***>
主题: Re: [umodoc/editor] 修改上传word文档的最大限制,不能生效,版本5.0 (Discussion #279)
<0b051fd>
0b051fd<0b051fd>
中添加了对 Word 文档导入时的限制,文件上传和和文档导入概念是不同的。之前限制在 5MB 是因为文档过大导入后可能会有性能问题。
―
Reply to this email directly, view it on GitHub<#279 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AG56MSOA2KBXXOIBODODKW327PMWRAVCNFSM6AAAAAB5QYASS2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMRRGQYDKNI>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
let options = ref({
toolbar: {
defaultMode: 'ribbon',
enableSourceEditor: true,
menus: ['base', 'insert', 'table', 'tools', 'page', 'export'],
disableMenuItems: [],
importWord: {
enabled: true,
options: {
},
file: {
allowedMimeTypes: ['doc',"docx"],
maxSize: 1024 * 1024 * 100, // 100M
},
});
配置option ,来修改上传word文档的最大限制,不生效,一直是5MB
Beta Was this translation helpful? Give feedback.
All reactions