From: Alexander Ebert Date: Wed, 30 Jul 2014 10:28:57 +0000 (+0200) Subject: Added methods getSource() and getName() X-Git-Tag: 2.1.0_Alpha_1~505 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c3f65349e824be85de907f33e7933bdc90981f7;p=GitHub%2FWoltLab%2FWCF.git Added methods getSource() and getName() --- 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(); } };