瀏覽代碼

img

master
chutingting 1 年之前
父節點
當前提交
ac1b5b70ce
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/components/ueditor/index.vue

+ 2
- 2
src/components/ueditor/index.vue 查看文件

@@ -163,9 +163,9 @@ export default {
if (this.isDisabled) this.editor.options.readonly = true
},
saveImg() {
let imageHtml = '<p><img src=\"' + this.imgUrl + '\"/></p>'
let imageHtml = '<p><img style="display: inline-block;" src=\"' + this.imgUrl + '\"/></p>'
if (this.imgWidth > 800) {
imageHtml = '<p><img width="100%" src=\"' + this.imgUrl + '\"/></p>'
imageHtml = '<p><img width="100%" style="display: inline-block;" src=\"' + this.imgUrl + '\"/></p>'
}
this.editor.execCommand('inserthtml', imageHtml)
this.uploadDiolagVisible = false


Loading…
取消
儲存