|
|
@@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="edit_container"> |
|
|
|
<div class="box-center"> |
|
|
|
<div class="edit_container" style="margin-top:50px;"> |
|
|
|
<div id="editor"></div> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
@@ -27,6 +27,7 @@ export default { |
|
|
|
// 配置 server 接口地址 |
|
|
|
// editor.config.uploadImgServer = "/upload-img"; |
|
|
|
editor.config.uploadImgShowBase64 = true |
|
|
|
editor.config.zIndex = 500 |
|
|
|
editor.create(); |
|
|
|
this.editor=editor |
|
|
|
}, |
|
|
@@ -40,4 +41,10 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped > |
|
|
|
.box-center { |
|
|
|
width: 100%; |
|
|
|
padding: 15px; |
|
|
|
min-width: 1000px; |
|
|
|
padding-bottom: 100px; |
|
|
|
} |
|
|
|
</style> |