8
0
Quellcode durchsuchen

Use editor variable.

Maciej Gołaszewski vor 6 Jahren
Ursprung
Commit
277a3d3620

+ 2 - 2
packages/ckeditor5-restricted-editing/src/restrictededitingmodeediting.js

@@ -85,10 +85,10 @@ export default class RestrictedEditingModeEditing extends Plugin {
 		editor.keystrokes.set( 'Shift+Tab', getCommandExecuter( editor, 'goToPreviousRestrictedEditingException' ) );
 
 		// Block clipboard completely in restricted mode.
-		this.listenTo( this.editor.editing.view.document, 'clipboardInput', evt => {
+		this.listenTo( editor.editing.view.document, 'clipboardInput', evt => {
 			evt.stop();
 		}, { priority: 'highest' } );
-		this.listenTo( this.editor.editing.view.document, 'clipboardOutput', ( evt, data ) => {
+		this.listenTo( editor.editing.view.document, 'clipboardOutput', ( evt, data ) => {
 			if ( data.method == 'cut' ) {
 				if ( !isRangeInsideSingleMarker( editor, editor.model.document.selection.getFirstRange() ) ) {
 					evt.stop();