Browse Source

编辑器插入图片默认增加100%宽度

master
hupeng 4 years ago
parent
commit
c458be4219
  1. 2
      src/components/editorMaterial/index.vue

2
src/components/editorMaterial/index.vue

@ -464,7 +464,7 @@ export default {
sureUrls() { sureUrls() {
let str = ''; let str = '';
this.urls.forEach(item => { this.urls.forEach(item => {
str += '<img src="' + item + '">' str += '<img width="100%" src="' + item + '">'
//this.$set(this.value, this.value.length, item) //this.$set(this.value, this.value.length, item)
nowEditor.dialog.close(true); nowEditor.dialog.close(true);
nowEditor.editor.setContent(str, true); nowEditor.editor.setContent(str, true);

Loading…
Cancel
Save