js/tinymce/tinymce.jquery.js
function (args) {
        var self = this, content, body = self.getBody();

        if (self.removed) {
          return '';
        }

        // Setup args object
        args = args || {};
        args.format = args.format || 'html';
        args.get = true;
        args.getInner = true;

        // Do preprocessing
        if (!args.no_events) {
          self.fire('BeforeGetContent', args);
        }

        // Get raw contents or by default the cleaned contents
        if (args.format == 'raw') {
          content = Tools.trim(self.serializer.getTrimmedContent());
        } else if (args.format == 'text') {
          content = body.innerText || body.textContent;
        } else {
          content = self.serializer.serialize(body, args);
        }

        // Trim whitespace in beginning/end of HTML
        if (args.format != 'text') {
          args.content = trim(content);
        } else {
          args.content = content;
        }

        // Do post processing
        if (!args.no_events) {
          self.fire('GetContent', args);
        }

        return args.content;
      }
function (args) {
        var self = this, content, body = self.getBody();

        if (self.removed) {
          return '';
        }

        // Setup args object
        args = args || {};
        args.format = args.format || 'html';
        args.get = true;
        args.getInner = true;

        // Do preprocessing
        if (!args.no_events) {
          self.fire('BeforeGetContent', args);
        }

        // Get raw contents or by default the cleaned contents
        if (args.format == 'raw') {
          content = Tools.trim(self.serializer.getTrimmedContent());
        } else if (args.format == 'text') {
          content = body.innerText || body.textContent;
        } else {
          content = self.serializer.serialize(body, args);
        }

        // Trim whitespace in beginning/end of HTML
        if (args.format != 'text') {
          args.content = trim(content);
        } else {
          args.content = content;
        }

        // Do post processing
        if (!args.no_events) {
          self.fire('GetContent', args);
        }

        return args.content;
      }
function ( args ) { var self = this , content , body = self . getBody ( ) ; if ( self . removed ) { return '' ; } // Setup args object args = args || { } ; args . format = args . format || 'html' ; args . get = true ; args . getInner = true ; // Do preprocessing if ( ! args . no_events ) { self . fire ( 'BeforeGetContent' , args ) ; } // Get raw contents or by default the cleaned contents if ( args . format == 'raw' ) { content = Tools . trim ( self . serializer . getTrimmedContent ( ) ) ; } else if ( args . format == 'text' ) { content = body . innerText || body . textContent ; } else { content = self . serializer . serialize ( body , args ) ; } // Trim whitespace in beginning/end of HTML if ( args . format != 'text' ) { args . content = trim ( content ) ; } else { args . content = content ; } // Do post processing if ( ! args . no_events ) { self . fire ( 'GetContent' , args ) ; } return args . content ; }
Gets the content from the editor instance, this will cleanup the content before it gets returned using
the different cleanup rules options.

@method getContent
@param {Object} args Optional content object, this gets passed around through the whole get process.
@return {String} Cleaned content string, normally HTML contents.
@example
// Get the HTML contents of the currently active editor
console.debug(tinymce.activeEditor.getContent());

// Get the raw contents of the currently active editor
tinymce.activeEditor.getContent({format: 'raw'});

// Get content of a specific editor:
tinymce.get('content id').getContent()
Gets the content from the editor instance this will cleanup the content before it gets returned using the different cleanup rules options .