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%' - }) } } })