Added methods getSource() and getName()
authorAlexander Ebert <ebert@woltlab.com>
Wed, 30 Jul 2014 10:28:57 +0000 (12:28 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 30 Jul 2014 10:28:57 +0000 (12:28 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js

index 1d58a8464260b97df41a4116c5807019da1805c8..d1b2d3215c11f66d99b8faa657f0a63d4de7293b 100644 (file)
@@ -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();
        }
 };