tinymce.full.js
function (value) {
        var self = this, i;

        if (isDefined(value)) {
          i = self.length;
          while (i--) {
            if ("innerText" in self[i]) {
              self[i].innerText = value;
            } else {
              self[0].textContent = value;
            }
          }

          return self;
        }

        return self[0] ? (self[0].innerText || self[0].textContent) : '';
      }
function (value) {
        var self = this, i;

        if (isDefined(value)) {
          i = self.length;
          while (i--) {
            if ("innerText" in self[i]) {
              self[i].innerText = value;
            } else {
              self[0].textContent = value;
            }
          }

          return self;
        }

        return self[0] ? (self[0].innerText || self[0].textContent) : '';
      }
function ( value ) { var self = this , i ; if ( isDefined ( value ) ) { i = self . length ; while ( i -- ) { if ( "innerText" in self [ i ] ) { self [ i ] . innerText = value ; } else { self [ 0 ] . textContent = value ; } } return self ; } return self [ 0 ] ? ( self [ 0 ] . innerText || self [ 0 ] . textContent ) : '' ; }
Sets or gets the text of the current set or first set node.

@method text
@param {String} value Optional innerText value to set on each element.
@return {tinymce.dom.DomQuery/String} Current set or the innerText of the first element.
Sets or gets the text of the current set or first set node .