wenbobowen 4 rokov pred
rodič
commit
8de3f52e95
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/components/input/normalArea.vue

+ 1 - 1
src/components/input/normalArea.vue

@@ -134,7 +134,7 @@ export default {
           this.inputValue = newStr
           // 光标最后
           this.$nextTick(() => {
-            var ifra = document.getElementById(`tinymce_${id}`);
+            var ifra = document.getElementById(`tinymce_${this.id}`);
             this.keepLastIndex(ifra.contentWindow.document.getElementById(`tinymce`), ifra.contentWindow)
           })
         }