Use IframeEditorToRendererCommunicatorContextProvider in document read only mode

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2021-06-21 15:29:49 +02:00
parent 6cfcc37b1c
commit 543fc9f987

View file

@ -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,6 +38,7 @@ export const DocumentReadOnlyPage: React.FC = () => {
const noteDetails = useApplicationState((state) => state.noteDetails)
return (
<IframeEditorToRendererCommunicatorContextProvider>
<div className={'d-flex flex-column mvh-100 bg-light'}>
<MotdBanner />
<AppBar mode={AppBarMode.BASIC} />
@ -63,6 +65,7 @@ export const DocumentReadOnlyPage: React.FC = () => {
/>
</ShowIf>
</div>
</IframeEditorToRendererCommunicatorContextProvider>
)
}