From d7563e5d91fd34158fc54a5729735dff33e8c76b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 13 Dec 2014 14:44:21 +0100 Subject: [PATCH] Prevent IE from messing things up with stupid object resizing --- .../files/js/3rdParty/redactor/plugins/wbbcode.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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)); + } }, /** -- 2.20.1