Commit 9463c50e authored by Pan's avatar Pan

feature: tinymce add setContent && getContent method

parent 658abf66
...@@ -150,6 +150,12 @@ export default { ...@@ -150,6 +150,12 @@ export default {
}) })
}, },
methods: { methods: {
setContent(value) {
window.tinymce.get(this.tinymceId).setContent(value)
},
getContent() {
window.tinymce.get(this.tinymceId).getContent()
},
imageSuccessCBK(arr) { imageSuccessCBK(arr) {
const _this = this const _this = this
arr.forEach(v => { arr.forEach(v => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment