소스 검색

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


불러오는 중...
취소
저장