tinymce.full.js
function () {
        var self = this, data = {};

        self.find('*').each(function (ctrl) {
          var name = ctrl.name(), value = ctrl.value();

          if (name && typeof value != "undefined") {
            data[name] = value;
          }
        });

        return data;
      }
function () {
        var self = this, data = {};

        self.find('*').each(function (ctrl) {
          var name = ctrl.name(), value = ctrl.value();

          if (name && typeof value != "undefined") {
            data[name] = value;
          }
        });

        return data;
      }
function ( ) { var self = this , data = { } ; self . find ( '*' ) . each ( function ( ctrl ) { var name = ctrl . name ( ) , value = ctrl . value ( ) ; if ( name && typeof value != "undefined" ) { data [ name ] = value ; } } ) ; return data ; }
Serializes the form into a JSON object by getting all items
that has a name and a value.

@method toJSON
@return {Object} JSON object with form data.
Serializes the form into a JSON object by getting all items that has a name and a value .