How can I pass data to tinymce in vue.js?

为君一笑 提交于 2019-12-23 06:04:14

问题


I have a form with a couple of filed and a tinymce editor. You can add and edit an item/row. When I try to edit a row and load the properties to their place all load just fine except the tinymce's Content. I want to parse the code inside the editor in a rendered form (source code=>normal form) but I cannot found a way to do so.

I have tried v-model but it doesnt work with tinymce backwards.

<v-flex>
    <tinymce id="d1" v-model="message.Content" :rules="empty"></tinymce>
</v-flex>

The message list is loaded with:

created() {
  Store.dispatch('customers/getMessageById', this.$route.params.id)
}

来源:https://stackoverflow.com/questions/57161463/how-can-i-pass-data-to-tinymce-in-vue-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!