创建新实例时无法设置方法editorView
内部的值。因为调用嵌套了两个方法,我不确定如何访问 Vue 实例来正确设置.onInit
Editor
editorView
data: function() {
return {
editor: new Editor({
onInit: ({ state, view }) => {
this.editorView = view
},
}),
editorView: null,
}
},