parent
f1660a5331
commit
9ae07cd711
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue