From 44106481b9763ebed9e5058822808c188fa36359 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 14 Aug 2015 14:53:56 +0200 Subject: [PATCH] Fixed message quote failing if there is no active editor instance --- wcfsetup/install/files/js/WCF.Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1