From 5af3c297353fd8aeba31b254c94d6bbee0e86a3d Mon Sep 17 00:00:00 2001 From: Igor Rogatty <7030884+rogatty@users.noreply.github.com> Date: Fri, 20 Dec 2024 12:25:03 +0100 Subject: [PATCH] Fix automath on clipboard paste It was broken since update to CKEditor v27. See https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-27.html#clipboard-input-pipeline-integration --- src/automath.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/automath.ts b/src/automath.ts index 1183ab1..8d6141c 100644 --- a/src/automath.ts +++ b/src/automath.ts @@ -29,7 +29,7 @@ export default class AutoMath extends Plugin { const editor = this.editor; const modelDocument = editor.model.document; - this.listenTo( editor.plugins.get( Clipboard ), 'inputTransformation', () => { + this.listenTo( editor.plugins.get( 'ClipboardPipeline' ), 'inputTransformation', () => { const firstRange = modelDocument.selection.getFirstRange(); if ( !firstRange ) { return;