Parcourir la source

Removed unnecessary property.

Piotrek Koszuliński il y a 5 ans
Parent
commit
f5e05a9fa3
1 fichiers modifiés avec 2 ajouts et 10 suppressions
  1. 2 10
      packages/ckeditor5-typing/src/texttransformation.js

+ 2 - 10
packages/ckeditor5-typing/src/texttransformation.js

@@ -92,21 +92,13 @@ export default class TextTransformation extends Plugin {
 				include: DEFAULT_TRANSFORMATIONS
 			}
 		} );
-
-		/**
-		 * The current editor instance.
-		 *
-		 * @private
-		 * @type {module:core/editor/editor~Editor}
-		 */
-		this._editor = editor;
 	}
 
 	/**
 	 * @inheritDoc
 	 */
 	init() {
-		const model = this._editor.model;
+		const model = this.editor.model;
 		const modelSelection = model.document.selection;
 
 		modelSelection.on( 'change:range', () => {
@@ -123,7 +115,7 @@ export default class TextTransformation extends Plugin {
 	 * @private
 	 */
 	_enableTransformationWatchers() {
-		const editor = this._editor;
+		const editor = this.editor;
 		const model = editor.model;
 		const input = editor.plugins.get( 'Input' );
 		const normalizedTransformations = normalizeTransformations( editor.config.get( 'typing.transformations' ) );