mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 08:02:37 +10:00
fix: focus editor on bottom click (#484)
This commit is contained in:
@ -97,8 +97,8 @@ export default function PageEditor({ pageId, editable }: PageEditorProps) {
|
|||||||
}, [remoteProvider, localProvider]);
|
}, [remoteProvider, localProvider]);
|
||||||
|
|
||||||
const extensions = [
|
const extensions = [
|
||||||
...mainExtensions,
|
... mainExtensions,
|
||||||
...collabExtensions(remoteProvider, currentUser.user),
|
... collabExtensions(remoteProvider, currentUser.user),
|
||||||
];
|
];
|
||||||
|
|
||||||
const editor = useEditor(
|
const editor = useEditor(
|
||||||
@ -184,6 +184,7 @@ export default function PageEditor({ pageId, editable }: PageEditorProps) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
<div onClick={() => editor.commands.focus('end')} style={{ paddingBottom: '20vh' }}></div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<EditorSkeleton />
|
<EditorSkeleton />
|
||||||
|
|||||||
Reference in New Issue
Block a user