This commit is contained in:
LangLangBart 2023-12-29 01:52:19 +01:00 • committed by GitHub
parent f1660a5331
commit 9ae07cd711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,6 +275,9 @@ function TipTapEditor(props: TipTapEditorProps) {
if (!props.isMainInput) {
return;
}
if (editor && document.hasFocus()) {
editor.commands.focus()
}
const handler = async (event: any) => {
if (!editor) return;