mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-03-24 16:18:39 +08:00
fix(editor): clear selection after toggle latex editor (#12637)
- **fix(editor): clear selection after toggle latex editor** - **chore: remove useless test** <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - LaTeX rendering now outputs MathML format for improved accessibility and compatibility. - Added support for KaTeX styling to enhance LaTeX display in the playground. - **Bug Fixes** - Improved editor behavior by resetting the selection group before opening the LaTeX editor. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -188,6 +188,8 @@ export class AffineLatexNode extends SignalWatcher(
|
||||
this._editorAbortController?.abort();
|
||||
this._editorAbortController = new AbortController();
|
||||
|
||||
blockComponent.selection.setGroup('note', []);
|
||||
|
||||
const portal = createLitPortal({
|
||||
template: html`<latex-editor-menu
|
||||
.std=${this.std}
|
||||
|
||||
Reference in New Issue
Block a user