富文本编辑器修改
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ ENV = 'development'
|
||||
VUE_APP_PROJECT_NAME = 'cereshop-admin-web'
|
||||
|
||||
# 请求服务配置
|
||||
VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://192.168.10.130:8764'
|
||||
VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://192.168.10.236:8764'
|
||||
#VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://8764.graf0b20.7xedcknz.ca6242.grapps.cn'
|
||||
#VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://platform.test.api.lotus-wallet.com/'
|
||||
# 是否启用验证码
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.editor-slide-upload[data-v-ea4df53e]{margin-bottom:20px}.editor-slide-upload[data-v-ea4df53e] .el-upload--picture-card{width:100%}.tinymce-container[data-v-47eaa0ca]{position:relative;line-height:normal}.tinymce-container[data-v-47eaa0ca] .mce-fullscreen{z-index:10000}.tinymce-textarea[data-v-47eaa0ca]{visibility:hidden;z-index:-1}.editor-custom-btn-container[data-v-47eaa0ca]{position:absolute;right:4px;top:4px}.fullscreen .editor-custom-btn-container[data-v-47eaa0ca]{z-index:10000;position:fixed}.editor-upload-btn[data-v-47eaa0ca]{display:inline-block}.pagination-container[data-v-6bb784f3]{background:#fff;padding:32px 16px 16px 0;margin-top:0}.hidebtn .el-upload,.pagination-container.hidden[data-v-6bb784f3]{display:none}
|
||||
@@ -1 +0,0 @@
|
||||
.editor-slide-upload[data-v-62a51960]{margin-bottom:20px}.editor-slide-upload[data-v-62a51960] .el-upload--picture-card{width:100%}.tinymce-container[data-v-138b9c4a]{position:relative;line-height:normal}.tinymce-container[data-v-138b9c4a] .mce-fullscreen{z-index:10000}.tinymce-textarea[data-v-138b9c4a]{visibility:hidden;z-index:-1}.editor-custom-btn-container[data-v-138b9c4a]{position:absolute;right:4px;top:4px}.fullscreen .editor-custom-btn-container[data-v-138b9c4a]{z-index:10000;position:fixed}.editor-upload-btn[data-v-138b9c4a]{display:inline-block}.pagination-container[data-v-6bb784f3]{background:#fff;padding:32px 16px 16px 0;margin-top:0}.hidebtn .el-upload,.pagination-container.hidden[data-v-6bb784f3]{display:none}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -158,10 +158,11 @@ export default {
|
||||
this.dialogVisible = false
|
||||
},
|
||||
handleSuccess(response, file) {
|
||||
if (response.data.dataType == 'IMAGE') {
|
||||
console.log(response,'response')
|
||||
if (response.data.dataType.code == 'IMAGE') {
|
||||
this.list.push(response.data.url)
|
||||
}
|
||||
if (response.data.dataType == 'VIDEO') {
|
||||
if (response.data.dataType.code == 'VIDEO') {
|
||||
this.videoUrl = response.data.url
|
||||
}
|
||||
const uid = file.uid
|
||||
|
||||
@@ -209,9 +209,14 @@ export default {
|
||||
},
|
||||
imageSuccessCBK(arr,videoUrl) {
|
||||
const _this = this
|
||||
console.log(arr,'arr')
|
||||
console.log(videoUrl,'videoUrl')
|
||||
if(arr.length) {
|
||||
arr.forEach(v => {
|
||||
window.tinymce.get(_this.tinymceId).insertContent(`<img class="wscnph" src="${v}" >`)
|
||||
})
|
||||
}
|
||||
if(videoUrl) {
|
||||
window.tinymce.get(_this.tinymceId).insertContent(`<video
|
||||
class="video-js"
|
||||
controls
|
||||
@@ -219,9 +224,10 @@ export default {
|
||||
preload="auto"
|
||||
src="${videoUrl}"
|
||||
poster="../../../assets/logo/microsoft.png">
|
||||
|
||||
</video>`)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user