更新WangEditor 版本,支持v-model方式绑定
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<el-link type="primary" href="https://www.wangeditor.com/v5/getting-started.html" target="_blank">wangEditor</el-link>
|
<el-link type="primary" href="https://www.wangeditor.com/v5/getting-started.html" target="_blank">wangEditor</el-link>
|
||||||
</p>
|
</p>
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<wang-editor v-model="editorContent" :editor-height="200" />
|
<wang-editor v-model="editorContent" style="height: 500px; overflow-y: hidden;" />
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -20,11 +20,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
editorContent:
|
editorContent:
|
||||||
`
|
`更多帮助请查看官方文档`
|
||||||
<ul>
|
|
||||||
<li>更多帮助请查看官方文档:<a style="color: #42b983" target="_blank" href="https://www.wangeditor.com/v5/getting-started.html">wangEditor</a></li>
|
|
||||||
</ul>
|
|
||||||
`
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -34,16 +30,6 @@ export default {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.text {
|
|
||||||
text-align:left;
|
|
||||||
}
|
|
||||||
::v-deep .w-e-text-container {
|
|
||||||
height: 420px !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user