|
@@ -168,9 +168,9 @@ export default {
|
|
|
newStr = newStr.replace(src[1], newImgUrl)
|
|
|
console.log(777, newStr)
|
|
|
// 光标最后
|
|
|
- _this.inputValue = newStr
|
|
|
- _this.$nextTick(() => {
|
|
|
- const ifra = document.getElementById(`tinymce_${_this.id}_ifr`)
|
|
|
+ this.inputValue = newStr
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const ifra = document.getElementById(`tinymce_${this.id}_ifr`)
|
|
|
keepLastIndex(ifra.contentWindow.document.getElementById(`tinymce`), ifra.contentWindow)
|
|
|
})
|
|
|
}
|