diff --git a/Themes/default/scripts/jquery.sceditor.smf.js b/Themes/default/scripts/jquery.sceditor.smf.js index 77f83b2adf..2d745f334a 100644 --- a/Themes/default/scripts/jquery.sceditor.smf.js +++ b/Themes/default/scripts/jquery.sceditor.smf.js @@ -306,7 +306,23 @@ sceditor.command.set( sceditor.command.set( 'maximize', { - shortcut: '' + shortcut: '', + exec: function (caller) + { + if (this.editorMainWrapper.style.height == '') { + this.height(this.editorMainWrapper.offsetHeight, this.editorMainWrapper.offsetHeight); + } + this.maximize(!this.maximize()); + this.focus(); + }, + txtExec: function (caller) + { + if (this.editorMainWrapper.style.height == '') { + this.height(this.editorMainWrapper.offsetHeight, this.editorMainWrapper.offsetHeight); + } + this.maximize(!this.maximize()); + this.focus(); + } } );