fix(editor): auto focus after add inline latex (#10309)

https://github.com/user-attachments/assets/09e713ee-e600-464c-8614-d874d343cfb0

Close #10208
This commit is contained in:
Flrande
2025-02-20 05:52:06 +00:00
parent ec67d30b27
commit 50820482df
2 changed files with 56 additions and 0 deletions

View File

@@ -229,6 +229,10 @@ export class AffineLatexNode extends SignalWatcher(
latex,
}
);
this.editor.setInlineRange({
index: this.endOffset,
length: 0,
});
}
},
{ once: true }