vue项目Ueditor报错

<template>

<div>

<UEditor :config="config" ref="TheRichText" v-model="content" @beforeInit="addCustomButtom"  @ready='ediready'></UEditor>

</div>

</template>

methods: {

//内容获取

    ediready(editor) {

editor.setContent(this.content); // 确保UE加载完成后,放入内容。

   editor.addListener('contentChange',()=>{

                  const content = editor.getContent()

// console.log(content)

this.$emit('editorchange',content)

})

    },

}

这个@ready不就是渲染完再加载吗,怎么还是要报

Cannot set property 'innerHTML' of undefined

    at UE.Editor.setContent 

 

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^