Dropping <wbr>
authorAlexander Ebert <ebert@woltlab.com>
Mon, 23 Feb 2015 17:04:24 +0000 (18:04 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 23 Feb 2015 17:04:24 +0000 (18:04 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index ebc5c2691a2fef24c9efd7653d54b73c577ad19d..eb1a6c905d6bd71ce136d18940cce3f7cbc7859f 100644 (file)
@@ -1376,6 +1376,9 @@ RedactorPlugins.wbbcode = function() {
                        html = html.replace(/<\/(div|p)><\/(div|p)>/g, '</p>');
                        //html = html.replace(/<(div|p)><br><\/(div|p)>/g, '<p>');
                        
+                       // drop <wbr>
+                       html = html.replace(/<\/?wbr[^>]*>/g, '');
+                       
                        WCF.System.Event.fireEvent('com.woltlab.wcf.redactor', 'beforePaste', { html: html });
                        
                        return html;