Преглед изворни кода

Align code to the changes in TextWatcher API.

Maciej Gołaszewski пре 6 година
родитељ
комит
78d3c80fb3
1 измењених фајлова са 1 додато и 1 уклоњено
  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 {