mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 18:31:11 +10:00
fix: editor improvements (#583)
* delete unused component * return page prosemirror content * prefetch pages * use prosemirro json content on editor * cache page query with id and slug as key * Show notice on collaboration disconnection * enable scroll while typing * enable immediatelyRender * avoid image break in PDF print * Comment editor rendering props
This commit is contained in:
@ -13,6 +13,7 @@ export interface FullEditorProps {
|
||||
pageId: string;
|
||||
slugId: string;
|
||||
title: string;
|
||||
content: string;
|
||||
spaceSlug: string;
|
||||
editable: boolean;
|
||||
}
|
||||
@ -21,6 +22,7 @@ export function FullEditor({
|
||||
pageId,
|
||||
title,
|
||||
slugId,
|
||||
content,
|
||||
spaceSlug,
|
||||
editable,
|
||||
}: FullEditorProps) {
|
||||
@ -40,7 +42,7 @@ export function FullEditor({
|
||||
spaceSlug={spaceSlug}
|
||||
editable={editable}
|
||||
/>
|
||||
<MemoizedPageEditor pageId={pageId} editable={editable} />
|
||||
<MemoizedPageEditor pageId={pageId} editable={editable} content={content} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user