diff --git a/packages/ckeditor5-ckfinder/src/ckfindercommand.js b/packages/ckeditor5-ckfinder/src/ckfindercommand.js index f1650e6a61a..d7fb683c292 100644 --- a/packages/ckeditor5-ckfinder/src/ckfindercommand.js +++ b/packages/ckeditor5-ckfinder/src/ckfindercommand.js @@ -33,6 +33,9 @@ export default class CKFinderCommand extends Command { constructor( editor ) { super( editor ); + // The CKFinder command does not affect data by itself. + this._affectsData = false; + // Remove default document listener to lower its priority. this.stopListening( this.editor.model.document, 'change' ); diff --git a/packages/ckeditor5-ckfinder/tests/ckfindercommand.js b/packages/ckeditor5-ckfinder/tests/ckfindercommand.js index 64936018489..abcb9f35388 100644 --- a/packages/ckeditor5-ckfinder/tests/ckfindercommand.js +++ b/packages/ckeditor5-ckfinder/tests/ckfindercommand.js @@ -455,4 +455,10 @@ describe( 'CKFinderCommand', () => { mockFinderEvent( 'files:choose', data ); } } ); + + describe( '_affectsData', () => { + it( 'does not affect data', () => { + expect( command._affectsData ).to.be.false; + } ); + } ); } );