mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 05:34:21 +03:00
fix: edgeless not work
This commit is contained in:
parent
9c77d0c7a7
commit
344483e436
@ -27,7 +27,7 @@ const BlockSuiteEditor = forwardRef<EditorContainer>(({}, ref) => {
|
|||||||
editor.remove();
|
editor.remove();
|
||||||
};
|
};
|
||||||
}, [ref]);
|
}, [ref]);
|
||||||
return <div ref={containerElement} />;
|
return <div id="editor" style={{ height: '100%' }} ref={containerElement} />;
|
||||||
});
|
});
|
||||||
|
|
||||||
export const Editor = () => {
|
export const Editor = () => {
|
||||||
@ -67,6 +67,7 @@ declare global {
|
|||||||
|
|
||||||
namespace JSX {
|
namespace JSX {
|
||||||
interface IntrinsicElements {
|
interface IntrinsicElements {
|
||||||
|
// TODO fix types on react
|
||||||
'editor-container': EditorContainer;
|
'editor-container': EditorContainer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user