|
@@ -155,7 +155,12 @@ export default {
|
|
|
this.inputValue = newStr
|
|
|
// 光标最后
|
|
|
this.$nextTick(() => {
|
|
|
- var ifra = document.getElementById(`tinymce_${this.id}_ifr`)
|
|
|
+ var ifra
|
|
|
+ if(document.getElementById(`tinymce_${this.id}_ifr`)) {
|
|
|
+ ifra = document.getElementById(`tinymce_${this.id}_ifr`)
|
|
|
+ } else {
|
|
|
+ ifra = document.getElementById(`tiny-vue_${this.id}_ifr`)
|
|
|
+ }
|
|
|
keepLastIndex(ifra.contentWindow.document.getElementById(`tinymce`), ifra.contentWindow)
|
|
|
})
|
|
|
}
|