chutingting 1 ano atrás
pai
commit
ac1b5b70ce
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      src/components/ueditor/index.vue

+ 2
- 2
src/components/ueditor/index.vue Ver arquivo

@@ -163,9 +163,9 @@ export default {
if (this.isDisabled) this.editor.options.readonly = true if (this.isDisabled) this.editor.options.readonly = true
}, },
saveImg() { 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) { 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.editor.execCommand('inserthtml', imageHtml)
this.uploadDiolagVisible = false this.uploadDiolagVisible = false


Carregando…
Cancelar
Salvar