From: Alexander Ebert Date: Fri, 23 Dec 2016 10:59:42 +0000 (+0100) Subject: Fixed incorrect handling of media floating X-Git-Tag: 3.0.0_RC_3~63 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cedb59108d250aba65e4d2d7990b67e43608b59d;p=GitHub%2FWoltLab%2FWCF.git Fixed incorrect handling of media floating --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js index 7c3bb1acfa..0c8f83b5df 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js @@ -13,7 +13,7 @@ $.Redactor.prototype.WoltLabMedia = function() { } var float = ''; - if (data.attributes === 3) { + if (data.attributes.length === 3) { if (data.attributes[2] === 'left') { float = ' messageFloatObjectLeft'; }