This commit is contained in:
zoujiandong
2025-07-17 17:15:28 +08:00
parent dc39275e6e
commit 75d515fbc6
92 changed files with 1718 additions and 945 deletions
@@ -46,7 +46,7 @@ export function addImage(imgs, options = {}) {
// 取消键盘副作用
noKeyboardEffect(() => {
editorCtx.insertText({ text: '\n' })
//editorCtx.insertText({ text: '\n' })
upRes?.forEach((item) => {
console.log('item')
console.log(item)
@@ -56,7 +56,7 @@ export function addImage(imgs, options = {}) {
})
})
// 建议加个换行,虽然会导致input回调再次触发,不过问题不大
editorCtx.insertText({ text: '\n' })
//editorCtx.insertText({ text: '\n' })
})
return upRes
@@ -88,7 +88,7 @@ export async function addVideo(uploadFunc, options = {}) {
// 取消键盘副作用
noKeyboardEffect(() => {
editorCtx.insertText({ text: '\n' })
//editorCtx.insertText({ text: '\n' })
upRes?.forEach((item) => {
editorCtx.insertImage({
...options,
@@ -97,7 +97,7 @@ export async function addVideo(uploadFunc, options = {}) {
})
})
// 建议加个换行,虽然会导致input回调再次触发,不过问题不大
editorCtx.insertText({ text: '\n' })
//editorCtx.insertText({ text: '\n' })
})
return upRes