Replies: 1 comment 2 replies
|
@l1shen 有比较完整伪代码吗?看一下具体用法,另外,如果完全脱离 Editor 的文档管理,你也可以基于 FileService 去做文件的存取。 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我们使用自定义资源和编辑器富组件(React 组件)的方式来渲染特定资源。用户可以通过直接通过操作这个编辑器富组件来修改资源
然后使用
IEditorDocumentModel.updateContent(JSON.stringify(data))方法将数据同步回文件。这个过程存在以下问题:
EditorDocumentModel有没有方法自己实现一个IEditorDocumentModelAll reactions