mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Use IframeEditorToRendererCommunicatorContextProvider in document read only mode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
6cfcc37b1c
commit
543fc9f987
1 changed files with 28 additions and 25 deletions
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue