Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(ckeditor5-math): fix references: LiveRange -> ModelLiveRange
Elian Doran29d96381fabb
diff --git a/packages/ckeditor5-math/src/automath.ts b/packages/ckeditor5-math/src/automath.tsindex 128b650b46..4e54f78cfd 100644--- a/packages/ckeditor5-math/src/automath.ts+++ b/packages/ckeditor5-math/src/automath.ts@@ -1,4 +1,4 @@-import { Clipboard, Plugin, type Editor, ModelLivePosition, LiveRange, Undo } from 'ckeditor5';+import { Clipboard, Plugin, type Editor, ModelLivePosition, ModelLiveRange, Undo } from 'ckeditor5';import { extractDelimiters, hasDelimiters, delimitersCounts } from './utils.js';export default class AutoMath extends Plugin {@@ -71,7 +71,7 @@ export default class AutoMath extends Plugin {// eslint-disable-next-line @typescript-eslint/no-non-null-assertionconst mathConfig = this.editor.config.get( 'math' );- const equationRange = new LiveRange( leftPosition, rightPosition );+ const equationRange = new ModelLiveRange( leftPosition, rightPosition );const walker = equationRange.getWalker( { ignoreElementEnd: true } );let text = '';