diff --git a/core/inlineimage.class.inc.php b/core/inlineimage.class.inc.php index 2a57ace66..3ce38fee8 100644 --- a/core/inlineimage.class.inc.php +++ b/core/inlineimage.class.inc.php @@ -415,6 +415,7 @@ EOF $sAbsoluteUrlAppRoot = utils::GetAbsoluteUrlAppRoot(); $sToggleFullScreen = htmlentities(Dict::S('UI:ToggleFullScreen'), ENT_QUOTES, 'UTF-8'); + $sAppRootUrl = utils::GetAbsoluteUrlAppRoot(); return << '); - $('#'+oEditor.id+'_toolbox .editor_magnifier').on('click', function() { - oEditor.execCommand('maximize'); - if ($(this).closest('.cke_maximized').length != 0) - { - $('#'+oEditor.id+'_toolbar_collapser').trigger('click'); - } - }); + if($('#'+oEditor.id+'_toolbox .editor_magnifier').length == 0) + { + $('#'+oEditor.id+'_toolbox').append(' '); + $('#'+oEditor.id+'_toolbox .editor_magnifier').on('click', function() { + oEditor.execCommand('maximize'); + if ($(this).closest('.cke_maximized').length != 0) + { + $('#'+oEditor.id+'_toolbar_collapser').trigger('click'); + } + }); + } oEditor.widgets.registered.uploadimage.onUploaded = function( upload ) { var oData = JSON.parse(upload.xhr.responseText); this.replaceWith( '