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
|
||||
|
||||
@@ -182,7 +182,8 @@ export default {
|
||||
* 主动聚焦
|
||||
* @returns {void}
|
||||
*/
|
||||
this.editorCtx.focus = this.$refs.editorRenderRef.focus
|
||||
//this.editorCtx.focus = this.$refs.editorRenderRef.focus
|
||||
|
||||
|
||||
/**
|
||||
* 退格
|
||||
@@ -209,7 +210,7 @@ export default {
|
||||
this.$refs.editorPluginRef.changePasteMode(type)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 生成视频封面图
|
||||
* @param {String} url 封面图片地址
|
||||
@@ -270,6 +271,9 @@ export default {
|
||||
* 主动触发input回调事件
|
||||
* @returns {void}
|
||||
*/
|
||||
// this.editorCtx.blur = ()=>{
|
||||
// this.$refs.editorRenderRef.blur();
|
||||
// };
|
||||
this.editorCtx.changeInput = () => {
|
||||
this.editorCtx.getContents({
|
||||
success: (res) => {
|
||||
@@ -314,6 +318,7 @@ export default {
|
||||
// #ifdef APP || H5
|
||||
if (this.pasteMode == 'origin') this.editorCtx.changePasteMode('origin')
|
||||
// #endif
|
||||
this.editorCtx.blur();
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user