From: Alexander Ebert Date: Sat, 13 Dec 2014 13:44:21 +0000 (+0100) Subject: Prevent IE from messing things up with stupid object resizing X-Git-Tag: 2.1.0_Beta_1~46 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7563e5d91fd34158fc54a5729735dff33e8c76b;p=GitHub%2FWoltLab%2FWCF.git Prevent IE from messing things up with stupid object resizing --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 1d54d90cfa..01a04d334b 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -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)); + } }, /**