From 29d96381fabb97483d70933e34a9d9d8f1c0af66 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 12 Jul 2025 19:27:46 +0300 Subject: [PATCH] chore(ckeditor5-math): fix references: LiveRange -> ModelLiveRange --- packages/ckeditor5-math/src/automath.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ckeditor5-math/src/automath.ts b/packages/ckeditor5-math/src/automath.ts index 128b650b4..4e54f78cf 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-assertion const 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 = '';