mirror of
https://github.com/docmost/docmost.git
synced 2026-08-24 09:42:15 +10:00
fix: safe editor
This commit is contained in:
@@ -458,7 +458,9 @@ export default function PageEditor({
|
||||
)}
|
||||
</div>
|
||||
<div
|
||||
onClick={() => editor.commands.focus("end")}
|
||||
onClick={() => {
|
||||
if (editor && !editor.isDestroyed) editor.commands.focus("end");
|
||||
}}
|
||||
style={{ paddingBottom: "20vh" }}
|
||||
></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user