wenbobowen 4 tahun lalu
induk
melakukan
ad2b67935c
1 mengubah file dengan 0 tambahan dan 6 penghapusan
  1. 0 6
      src/components/input/normalArea.vue

+ 0 - 6
src/components/input/normalArea.vue

@@ -139,11 +139,9 @@ export default {
       if (document.getElementById(`tinymce_${this.id}_ifr`)) {
         const d = document.getElementById(`tinymce_${this.id}_ifr`).contentWindow.document.getElementById('tinymce')
         // const d = document.getElementById(`${this.id}`)
-        console.log(d)
         const _this = this
         d.onpaste = (e) => {
           // e.preventDefault()
-          console.log(e)
           setTimeout(() => {
             _this.resetImgSrc(_this.inputValue)
           }, 0)
@@ -158,15 +156,11 @@ export default {
       const imgReg = /<img.*?(?:>|\/>)/gi
       const srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/i
       const imgArr = newStr.match(imgReg)
-      console.log(imgArr)
       imgArr && imgArr.map(async t => {
         const src = t.match(srcReg)
         if (src[1] && src[1].includes('data:image')) {
-          console.log(321)
           const newImgUrl = await uploadImg(src[1])
-          console.log(666, newImgUrl)
           newStr = newStr.replace(src[1], newImgUrl)
-          console.log(777, newStr)
           // 光标最后
           this.inputValue = newStr
           this.$nextTick(() => {