我如何设置这个tinymce的初始content/value?
How can I set the initial content/value of this tinymce?
我在我的应用程序中使用这个 tinymce 编辑器:https://github.com/dyonir/vue-tinymce-editor。
我想在初始化时用内容填充我的编辑器。
我试过v-model。
<tinymce id="d1" v-model="hello"></tinymce>
data(){
return {
hello: 'hello'
}
}
您引用的项目已经很久没有更新了。 TinyMCE 本身有一个他们积极维护的官方 Vue 包装器:
https://github.com/tinymce/tinymce-vue
您是否尝试过改用该集成代码?如果其他代码有效(或者您可以从其开发人员那里得到答案),那么您没有理由不能使用该代码,但 Git 问题跟踪器看起来无人看管。
注意:为了全面披露,我在制作 TinyMCE(以及我上面链接的 Vue 包装器)的公司工作。
我在我的应用程序中使用这个 tinymce 编辑器:https://github.com/dyonir/vue-tinymce-editor。
我想在初始化时用内容填充我的编辑器。
我试过v-model。
<tinymce id="d1" v-model="hello"></tinymce>
data(){
return {
hello: 'hello'
}
}
您引用的项目已经很久没有更新了。 TinyMCE 本身有一个他们积极维护的官方 Vue 包装器:
https://github.com/tinymce/tinymce-vue
您是否尝试过改用该集成代码?如果其他代码有效(或者您可以从其开发人员那里得到答案),那么您没有理由不能使用该代码,但 Git 问题跟踪器看起来无人看管。
注意:为了全面披露,我在制作 TinyMCE(以及我上面链接的 Vue 包装器)的公司工作。