编辑器插入图片默认增加100%宽度
This commit is contained in:
@ -149,7 +149,7 @@ import { getPage as materialgroupPage, addObj as materialgroupAdd, delObj as mat
|
||||
import { getPage, addObj, delObj, putObj } from '@/api/tools/material'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { mapGetters } from 'vuex'
|
||||
import '../../../public/UEditor/dialogs/internal';
|
||||
import '../../../public/UEditor/dialogs/internal'
|
||||
|
||||
export default {
|
||||
name: 'MaterialList',
|
||||
@ -462,12 +462,12 @@ export default {
|
||||
return isPic && isLt2M
|
||||
},
|
||||
sureUrls() {
|
||||
let str = '';
|
||||
let str = ''
|
||||
this.urls.forEach(item => {
|
||||
str += '<img width="100%" src="' + item + '">'
|
||||
//this.$set(this.value, this.value.length, item)
|
||||
nowEditor.dialog.close(true);
|
||||
nowEditor.editor.setContent(str, true);
|
||||
// this.$set(this.value, this.value.length, item)
|
||||
nowEditor.dialog.close(true)
|
||||
nowEditor.editor.setContent(str, true)
|
||||
})
|
||||
this.listDialogVisible = false
|
||||
}
|
||||
|
Reference in New Issue
Block a user