From cedb59108d250aba65e4d2d7990b67e43608b59d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 23 Dec 2016 11:59:42 +0100 Subject: [PATCH] Fixed incorrect handling of media floating --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } -- 2.20.1