Skip to content
Permalink
Browse files

Added automatically disabling maximize plugin when sharedspace plugin…

… is present.
  • Loading branch information...
adelura authored and Reinmar committed Jul 24, 2014
1 parent c9a0a2a commit df1293de5ab6a577fdb19b219d934683d847bb90
Showing with 5 additions and 1 deletion.
  1. +5 −1 plugins/maximize/plugin.js
@@ -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();

0 comments on commit df1293d

Please sign in to comment.
You can’t perform that action at this time.