From 705c666202a351de61e7b9c6f97802e8540e80fe Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 17 Mar 2025 16:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8F=92=E5=85=A5=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=AE=BE=E7=BD=AE=E6=9C=80=E5=A4=A7=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?100%=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/editor.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/editor/editor.js b/src/editor/editor.js index ffb7f69..b2c5f18 100644 --- a/src/editor/editor.js +++ b/src/editor/editor.js @@ -244,10 +244,6 @@ class Editor extends Component { outline: none; text-wrap: wrap; word-break: break-all; - - img { - max-width: 100%; - } } `, @@ -447,13 +443,8 @@ class Editor extends Component { send: link => { this.$refs.editor.focus() this.restoreSelection() - this.exec(ACTTION.image, link) + this.exec(ACTTION.html, ``) this.saveSelection() - - // 修正插入的图片,宽度不得超出容器 - this.$refs.editor.querySelectorAll('img').forEach(_ => { - _.style.maxWidth = '100%' - }) } } })