From 3c3f65349e824be85de907f33e7933bdc90981f7 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 30 Jul 2014 12:28:57 +0200 Subject: [PATCH] Added methods getSource() and getName() --- .../js/3rdParty/redactor/plugins/wutil.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index 1d58a84642..d1b2d3215c 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -307,5 +307,23 @@ RedactorPlugins.wutil = { this.sync(undefined, true); this.$source.val(this.cleanHtml(this.$source.val())); this._convertFromHtml(); + }, + + /** + * Returns source textarea object. + * + * @return jQuery + */ + getSource: function() { + return this.$source; + }, + + /** + * Returns editor instance name. + * + * @return string + */ + getName: function() { + return this.$source.wcfIdentify(); } }; -- 2.20.1