如题,按照官方文档中使用 Editor.Profile.load 等 api 出错,不知道怎么保存扩展用的数据。
// register a project profile
Editor.Profile.register('project', '~/foo/bar');
// load the profile at ~/foo/bar/foobar.json
//let profile = Editor.loadProfile('profile://project/foobar.json', {
let profile = Editor.Profile.load('profile://project/foobar.json', {
foo: 'foo',
bar: 'bar',
});
// change and save your profile
profile.foo = 'hello foo';
profile.save();
// TypeError: Editor.loadProfile is not a function
// Error: ENOENT: no such file or directory, open '~/foo/bar/foobar.json'
