From d0489be7c66b905d019f2c8f530043bada7f0968 Mon Sep 17 00:00:00 2001 From: Aodhagan Murphy Date: Thu, 8 Aug 2024 00:23:05 +0100 Subject: [PATCH] feat: wrapping connected rte instead of root one with entity provider [] --- packages/rich-text/src/RichTextEditor.tsx | 82 +++++++++++------------ 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/packages/rich-text/src/RichTextEditor.tsx b/packages/rich-text/src/RichTextEditor.tsx index 7988ef153..9eb9cf93d 100644 --- a/packages/rich-text/src/RichTextEditor.tsx +++ b/packages/rich-text/src/RichTextEditor.tsx @@ -65,26 +65,28 @@ export const ConnectedRichTextEditor = (props: ConnectedProps) => { ); return ( - - -
- - {!props.isToolbarHidden && ( - - - - )} - - - -
-
-
+ + + +
+ + {!props.isToolbarHidden && ( + + + + )} + + + +
+
+
+
); }; @@ -99,27 +101,25 @@ const RichTextEditor = (props: Props) => { const id = getContentfulEditorId(props.sdk); return ( - - - {({ lastRemoteValue, disabled, setValue }) => ( - - )} - - + + {({ lastRemoteValue, disabled, setValue }) => ( + + )} + ); };