Fixed incorrect handling of media floating
authorAlexander Ebert <ebert@woltlab.com>
Fri, 23 Dec 2016 10:59:42 +0000 (11:59 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 23 Dec 2016 10:59:47 +0000 (11:59 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js

index 7c3bb1acfa916bed528669cebcde2531febed022..0c8f83b5df69efb22efbcadbe3d79fb5d7620d27 100644 (file)
@@ -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';
                                        }