Update editor.tsx

This commit is contained in:
yanmao 2021-12-31 01:29:11 +08:00
parent 26e47514c2
commit d557fdd43e
1 changed files with 17 additions and 1 deletions

View File

@ -98,7 +98,23 @@ export default () => {
readonly={isReadonly}
onLoad={setEngine}
toc={true}
ot={false}
ot={
IS_DEV
? false
: {
url: `${wsUrl}${
member ? '?uid=' + member.id : ''
}`,
docId: 'demo',
onReady: (member) => {
if (member)
localStorage.setItem(
'member',
JSON.stringify(member),
);
},
}
}
onSave={onSave}
/>
</Context.Provider>