Preserve <ul> from losing its style attribute
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Nov 2014 15:45:20 +0000 (16:45 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Nov 2014 15:45:20 +0000 (16:45 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index a71a31884d84f93839d2e11b020519f4c788155d..671197ef3eb532d13329fc8a0793157b02957ab7 100644 (file)
@@ -115,6 +115,12 @@ RedactorPlugins.wbbcode = function() {
                                        }
                                }
                        }).bind(this));
+                       
+                       // drop ul to prevent being touched by this.clean.clearUnverifiedRemove()
+                       var $index = this.opts.verifiedTags.indexOf('ul');
+                       if ($index > -1) {
+                               this.opts.verifiedTags.splice($index, 1);
+                       }
                },
                
                /**