mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 00:21: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:
@ -25,7 +25,7 @@ export default function Page() {
|
||||
const { data: space } = useGetSpaceBySlugQuery(page?.space?.slug);
|
||||
|
||||
const spaceRules = space?.membership?.permissions;
|
||||
const spaceAbility = useSpaceAbility(spaceRules);
|
||||
const spaceAbility = useSpaceAbility(spaceRules);
|
||||
|
||||
if (isLoading) {
|
||||
return <></>;
|
||||
@ -55,8 +55,10 @@ export default function Page() {
|
||||
/>
|
||||
|
||||
<FullEditor
|
||||
key={page.id}
|
||||
pageId={page.id}
|
||||
title={page.title}
|
||||
content={page.content}
|
||||
slugId={page.slugId}
|
||||
spaceSlug={page?.space?.slug}
|
||||
editable={spaceAbility.can(
|
||||
|
||||
Reference in New Issue
Block a user