Răsfoiți Sursa

Align code to the changes in TextWatcher API.

Maciej Gołaszewski 6 ani în urmă
părinte
comite
78d3c80fb3
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/ckeditor5-typing/src/texttransformation.js

+ 1 - 1
packages/ckeditor5-typing/src/texttransformation.js

@@ -73,7 +73,7 @@ export default class TextTransformation extends Plugin {
 			const regExp = from instanceof RegExp ? from : new RegExp( `${ from }$`, 'u' );
 
 			// setup text watcher
-			const watcher = new TextWatcher( editor, text => regExp.test( text ), text => {
+			const watcher = new TextWatcher( editor.model, text => regExp.test( text ), text => {
 				const match = text.match( regExp );
 
 				return {