From: Alexander Ebert Date: Tue, 11 Mar 2014 22:35:52 +0000 (+0100) Subject: Removed preview in image dialog X-Git-Tag: 2.0.4~19^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=487d6cd8b7991fe65506285e75d4676450aab794;p=GitHub%2FWoltLab%2FWCF.git Removed preview in image dialog --- diff --git a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js index 8f8fe769f8..e3d8d81946 100644 --- a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js +++ b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js @@ -113,7 +113,6 @@ var $tab; var $name = event.data.name; var $definition = event.data.definition; - if ($name == 'link') { $definition.removeContents('target'); $definition.removeContents('upload'); @@ -129,6 +128,13 @@ $tab = $definition.getContents('info'); $tab.remove('txtAlt'); $tab.remove('basic'); + + // remove preview, do NOT use $tab.remove() because that breaks the plugin + $definition.dialog.on('show', function(event) { + var $container = $(event.sender._.element.$).find('div[name=info]') + $container.find('> table > tbody > tr:eq(1)').hide(); + $container.parent().css('height', 'auto'); + }); } else if ($name == 'table') { $definition.removeContents('advanced');