Skip to content

Commit

Permalink
Checking readOnly state instead of config.readOnly.
Browse files Browse the repository at this point in the history
  • Loading branch information
beatadelura committed Aug 28, 2017
1 parent b248613 commit 7456980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/image2/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
// Setup dynamic image resizing with mouse.
// Don't initialize resizer when dimensions are disallowed (http://dev.ckeditor.com/ticket/11004).
// Don't initialize resizer when config.readOnly is set to true (#719).
if ( editor.filter.checkFeature( this.features.dimension ) && editor.config.image2_disableResizer !== true && editor.config.readOnly != true ) {
if ( editor.filter.checkFeature( this.features.dimension ) && editor.config.image2_disableResizer !== true && editor.readOnly != true ) {
setupResizer( this );
}

Expand Down

0 comments on commit 7456980

Please sign in to comment.