Fixed quotes and italic formatting
authorAlexander Ebert <ebert@woltlab.com>
Mon, 27 Oct 2014 14:35:23 +0000 (15:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 27 Oct 2014 14:35:23 +0000 (15:35 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 80c02013c6ef4e7a07a704042bd282534839ff3d..f4bb9637a2de773a46a180e395053a98f807e882 100644 (file)
@@ -278,7 +278,7 @@ RedactorPlugins.wbbcode = function() {
                        html = html.replace(/<\/(?:b|strong)>/gi, '[/b]');
                        
                        // [i]
-                       html = html.replace(/<(?:i|em)>/gi, '[i]');
+                       html = html.replace(/<(?:i|em)[^>]*>/gi, '[i]');
                        html = html.replace(/<\/(?:i|em)>/gi, '[/i]');
                        
                        // [u]
@@ -1182,7 +1182,7 @@ RedactorPlugins.wbbcode = function() {
                        $('<a href="#">' + WCF.Language.get('wcf.bbcode.quote.edit') + '</a>').click($.proxy(function(e) {
                                e.preventDefault();
                                
-                               this._openQuoteEditOverlay($(event.currentTarget).closest('blockquote.quoteBox'), false);
+                               this.wbbcode._openQuoteEditOverlay($(event.currentTarget).closest('blockquote.quoteBox'), false);
                                $('.redactor-link-tooltip').remove();
                        }, this)).appendTo($tooltip);
                        
@@ -1233,7 +1233,7 @@ RedactorPlugins.wbbcode = function() {
                                        
                                        this.wbbcode._updateQuoteHeader(quote);
                                        
-                                       this.modalClose();
+                                       this.modal.close();
                                }, this));
                        }