Merge branch 'pathfinder' of github.com:toeverything/AFFiNE into feat/modify

This commit is contained in:
QiShaoXuan
2022-10-31 10:56:28 +08:00
12 changed files with 187 additions and 25 deletions
+2 -1
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;
}
}