tinymce.full.js
function (name, attrs, html) {
        return this.add(this.doc.createElement(name), name, attrs, html, 1);
      }
function (name, attrs, html) {
        return this.add(this.doc.createElement(name), name, attrs, html, 1);
      }
function ( name , attrs , html ) { return this . add ( this . doc . createElement ( name ) , name , attrs , html , 1 ) ; }
Creates a new element.

@method create
@param {String} name Name of new element.
@param {Object} attrs Optional object name/value collection with element attributes.
@param {String} html Optional HTML string to set as inner HTML of the element.
@return {Element} HTML DOM node element that got created.
@example
// Adds an element where the caret/selection is in the active editor
var el = tinymce.activeEditor.dom.create('div', {id: 'test', 'class': 'myclass'}, 'some content');
tinymce.activeEditor.selection.setNode(el);
Creates a new element .