Skip to content

Commit 9463c50

Browse files
committed
feature: tinymce add setContent && getContent method
1 parent 658abf6 commit 9463c50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Tinymce/index.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ export default {
150150
})
151151
},
152152
methods: {
153+
setContent(value) {
154+
window.tinymce.get(this.tinymceId).setContent(value)
155+
},
156+
getContent() {
157+
window.tinymce.get(this.tinymceId).getContent()
158+
},
153159
imageSuccessCBK(arr) {
154160
const _this = this
155161
arr.forEach(v => {

0 commit comments

Comments
 (0)