7.17
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user