From 4d124a011a283f62d24c54cf975331f6ce67708e Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Thu, 24 Feb 2022 08:56:18 +0200 Subject: [PATCH] add group --- editors/demo/src/NCBI/layout/NcbiLayout.js | 3 +-- editors/demo/src/NCBI/layout/NcbiMiniLayout.js | 2 -- wax-prosemirror-core/src/WaxView.js | 2 +- wax-prosemirror-services/src/NoteService/Editor.js | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/editors/demo/src/NCBI/layout/NcbiLayout.js b/editors/demo/src/NCBI/layout/NcbiLayout.js index 061ccd11f..12f21dc14 100644 --- a/editors/demo/src/NCBI/layout/NcbiLayout.js +++ b/editors/demo/src/NCBI/layout/NcbiLayout.js @@ -66,7 +66,7 @@ const EditorContainer = styled.div` `; const TopBar = ComponentPlugin('topBar'); -const WaxOverlays = ComponentPlugin('waxOverlays'); + const NcbiLayout = ({ editor }) => ( <ThemeProvider theme={cokoTheme}> <Wrapper> @@ -80,7 +80,6 @@ const NcbiLayout = ({ editor }) => ( </WaxSurfaceScroll> </EditorArea> </Main> - <WaxOverlays /> </Wrapper> </ThemeProvider> ); diff --git a/editors/demo/src/NCBI/layout/NcbiMiniLayout.js b/editors/demo/src/NCBI/layout/NcbiMiniLayout.js index f1c6508b9..4216e4d30 100644 --- a/editors/demo/src/NCBI/layout/NcbiMiniLayout.js +++ b/editors/demo/src/NCBI/layout/NcbiMiniLayout.js @@ -68,7 +68,6 @@ const EditorContainer = styled.div` `; const TopBar = ComponentPlugin('topBar'); -const WaxOverlays = ComponentPlugin('waxOverlays'); const NcbiLayout = ({ editor }) => ( <ThemeProvider theme={cokoTheme}> @@ -83,7 +82,6 @@ const NcbiLayout = ({ editor }) => ( </WaxSurfaceScroll> </EditorArea> </Main> - <WaxOverlays /> </Wrapper> </ThemeProvider> ); diff --git a/wax-prosemirror-core/src/WaxView.js b/wax-prosemirror-core/src/WaxView.js index f3f1e7819..d355f3d60 100644 --- a/wax-prosemirror-core/src/WaxView.js +++ b/wax-prosemirror-core/src/WaxView.js @@ -151,7 +151,7 @@ const WaxView = forwardRef((props, ref) => { const editor = ( <> <div ref={setEditorRef} /> - {context.activeViewId === 'main' && <WaxOverlays />} + {context.activeViewId === 'main' && <WaxOverlays group="main" />} <WaxPortals /> </> ); diff --git a/wax-prosemirror-services/src/NoteService/Editor.js b/wax-prosemirror-services/src/NoteService/Editor.js index cbc9bf7dc..319263c47 100644 --- a/wax-prosemirror-services/src/NoteService/Editor.js +++ b/wax-prosemirror-services/src/NoteService/Editor.js @@ -197,7 +197,7 @@ export default ({ node, view }) => { return ( <NoteContainer> {NoteEditorContainerComponent} - {context.activeViewId === noteId && <WaxOverlays />} + {context.activeViewId === noteId && <WaxOverlays group="notes" />} </NoteContainer> ); }; -- GitLab