From 9463c50e06ee4dfbe1956d48fc4df68bc55507fa Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 18 Oct 2017 17:02:35 +0800 Subject: [PATCH] feature: tinymce add setContent && getContent method --- src/components/Tinymce/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index 0dd164b3..ef9be84f 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -150,6 +150,12 @@ export default { }) }, methods: { + setContent(value) { + window.tinymce.get(this.tinymceId).setContent(value) + }, + getContent() { + window.tinymce.get(this.tinymceId).getContent() + }, imageSuccessCBK(arr) { const _this = this arr.forEach(v => {