Skip to content

Commit

Permalink
Added automatically disabling maximize plugin when sharedspace plugin…
Browse files Browse the repository at this point in the history
… is present.
  • Loading branch information
adelura authored and Reinmar committed Aug 29, 2014
1 parent c9a0a2a commit df1293d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/maximize/plugin.js
Expand Up @@ -96,10 +96,14 @@
icons: 'maximize', // %REMOVE_LINE_CORE%
hidpi: true, // %REMOVE_LINE_CORE%
init: function( editor ) {
// Maximize plugin isn't available in inline mode yet.
// Maximize plugin isn't available in inline mode yet...
if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE )
return;

// ...and when sharedspace plugin is present.
if ( editor.plugins.sharedspace )
return;

var lang = editor.lang;
var mainDocument = CKEDITOR.document,
mainWindow = mainDocument.getWindow();
Expand Down

0 comments on commit df1293d

Please sign in to comment.