mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix: edgeless not work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user