Prevent IE from messing things up with stupid object resizing
authorAlexander Ebert <ebert@woltlab.com>
Sat, 13 Dec 2014 13:44:21 +0000 (14:44 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 13 Dec 2014 13:44:21 +0000 (14:44 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 1d54d90cfab99ff7bd568306078e9e0f728f75af..01a04d334b54bd62f8d76bdff2c9934765dd2320 100644 (file)
@@ -1358,7 +1358,19 @@ RedactorPlugins.wbbcode = function() {
                 * Initializes source editing for quotes.
                 */
                _observeQuotes: function() {
-                       this.$editor.find('.redactorQuoteEdit:not(.jsRedactorQuoteEdit)').addClass('jsRedactorQuoteEdit').click($.proxy(this.wbbcode._observeQuotesClick, this));
+                       var $editHeader = this.$editor.find('.redactorQuoteEdit:not(.jsRedactorQuoteEdit)');
+                       if ($editHeader.length) {
+                               $editHeader.each((function(index, editHeader) {
+                                       var $editHeader = $(editHeader);
+                                       $editHeader.addClass('jsRedactorQuoteEdit').click($.proxy(this.wbbcode._observeQuotesClick, this));
+                                       
+                                       if ($.browser.msie) {
+                                               var $outerDiv = $editHeader.parent().parent();
+                                               $outerDiv.attr('contenteditable', false);
+                                               $outerDiv.children('div').attr('contenteditable', true);
+                                       }
+                               }).bind(this));
+                       }
                },
                
                /**