From: Alexander Ebert Date: Fri, 14 Aug 2015 12:53:56 +0000 (+0200) Subject: Fixed message quote failing if there is no active editor instance X-Git-Tag: 2.1.7~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=44106481b9763ebed9e5058822808c188fa36359;p=GitHub%2FWoltLab%2FWCF.git Fixed message quote failing if there is no active editor instance --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 1da687b688..21fb22f4b4 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -2866,7 +2866,7 @@ WCF.Message.Quote.Manager = Class.extend({ } } - if (insert) this._editorElement.redactor('wbbcode.insertQuoteBBCode', $username, $link, $quote, $quote); + if (insert && this._editorElement.length) this._editorElement.redactor('wbbcode.insertQuoteBBCode', $username, $link, $quote, $quote); } else { this._editorElementAlternative.redactor('wbbcode.insertQuoteBBCode', $username, $link, $quote, $quote);