From 543fc9f987094581e753f3c2f0ebe1cd210cae5c Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Mon, 21 Jun 2021 15:29:49 +0200 Subject: [PATCH] Use IframeEditorToRendererCommunicatorContextProvider in document read only mode Signed-off-by: Tilman Vatteroth --- .../document-read-only-page.tsx | 53 ++++++++++--------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/src/components/document-read-only-page/document-read-only-page.tsx b/src/components/document-read-only-page/document-read-only-page.tsx index a035ded67..d919c4abc 100644 --- a/src/components/document-read-only-page/document-read-only-page.tsx +++ b/src/components/document-read-only-page/document-read-only-page.tsx @@ -22,6 +22,7 @@ import { ErrorWhileLoadingNoteAlert } from './ErrorWhileLoadingNoteAlert' import { LoadingNoteAlert } from './LoadingNoteAlert' import { RendererType } from '../render-page/rendering-message' import { useApplicationState } from '../../hooks/common/use-application-state' +import { IframeEditorToRendererCommunicatorContextProvider } from '../editor-page/render-context/iframe-editor-to-renderer-communicator-context-provider' export const DocumentReadOnlyPage: React.FC = () => { useTranslation() @@ -37,32 +38,34 @@ export const DocumentReadOnlyPage: React.FC = () => { const noteDetails = useApplicationState((state) => state.noteDetails) return ( -
- - -
- - + +
+ + +
+ + +
+ + + +
- - - - -
+ ) }