mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
chore(ckeditor5-math): fix references: LiveRange -> ModelLiveRange
This commit is contained in:
parent
da8eecf774
commit
29d96381fa
@ -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';
|
import { extractDelimiters, hasDelimiters, delimitersCounts } from './utils.js';
|
||||||
|
|
||||||
export default class AutoMath extends Plugin {
|
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
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
const mathConfig = this.editor.config.get( 'math' );
|
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 } );
|
const walker = equationRange.getWalker( { ignoreElementEnd: true } );
|
||||||
|
|
||||||
let text = '';
|
let text = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user