= React.memo((props) => {
0 ? props.pcfContext.mode.allocatedHeight : 800}px`, width: `${props.allocatedWidth > 0 ? props.pcfContext.mode.allocatedWidth : 1024}px` }}>
{ !appState.isFullScreen && }
{ appState.editorProps && appState.defaultDesign &&
-
+
}
);
diff --git a/src/web/Xrm.Oss.HtmlTemplating/components/EditorWrapper.tsx b/src/web/Xrm.Oss.HtmlTemplating/components/EditorWrapper.tsx
index c455ad8..b2d3839 100644
--- a/src/web/Xrm.Oss.HtmlTemplating/components/EditorWrapper.tsx
+++ b/src/web/Xrm.Oss.HtmlTemplating/components/EditorWrapper.tsx
@@ -4,13 +4,13 @@ import EmailEditor, { EditorRef, EmailEditorProps } from "react-email-editor";
export interface EditorWrapperProps {
editorProps: EmailEditorProps;
- refCallBack: (editor: EditorRef) => void;
+ editorRef: React.RefObject;
}
-export const EditorWrapper: React.FC = React.memo(({ editorProps, refCallBack }) => {
+export const EditorWrapper: React.FC = React.memo(({ editorProps, editorRef }) => {
return (
)
});
\ No newline at end of file