Merge pull request #505 from toeverything/fix/whiteboard

fix: edgeless not work
This commit is contained in:
Qi 2022-10-26 17:30:42 +08:00 committed by GitHub
commit d94a6956b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ const BlockSuiteEditor = forwardRef<EditorContainer>(({}, ref) => {
editor.remove();
};
}, [ref]);
return <div ref={containerElement} />;
return <div id="editor" style={{ height: '100%' }} ref={containerElement} />;
});
export const Editor = () => {
@ -67,6 +67,7 @@ declare global {
namespace JSX {
interface IntrinsicElements {
// TODO fix types on react
'editor-container': EditorContainer;
}
}