8
0
Просмотр исходного кода

Align code to the changes in TextWatcher API.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
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 {