tinymce.full.js
function (items) {
        var self = this, settings, ctrlItems = [];

        // Non array structure, then force it into an array
        if (!Tools.isArray(items)) {
          items = [items];
        }

        // Add default type to each child control
        Tools.each(items, function (item) {
          if (item) {
            // Construct item if needed
            if (!(item instanceof Control)) {
              // Name only then convert it to an object
              if (typeof item == "string") {
                item = { type: item };
              }

              // Create control instance based on input settings and default settings
              settings = Tools.extend({}, self.settings.defaults, item);
              item.type = settings.type = settings.type || item.type || self.settings.defaultType ||
                (settings.defaults ? settings.defaults.type : null);
              item = Factory.create(settings);
            }

            ctrlItems.push(item);
          }
        });

        return ctrlItems;
      }
function (items) {
        var self = this, settings, ctrlItems = [];

        // Non array structure, then force it into an array
        if (!Tools.isArray(items)) {
          items = [items];
        }

        // Add default type to each child control
        Tools.each(items, function (item) {
          if (item) {
            // Construct item if needed
            if (!(item instanceof Control)) {
              // Name only then convert it to an object
              if (typeof item == "string") {
                item = { type: item };
              }

              // Create control instance based on input settings and default settings
              settings = Tools.extend({}, self.settings.defaults, item);
              item.type = settings.type = settings.type || item.type || self.settings.defaultType ||
                (settings.defaults ? settings.defaults.type : null);
              item = Factory.create(settings);
            }

            ctrlItems.push(item);
          }
        });

        return ctrlItems;
      }
function ( items ) { var self = this , settings , ctrlItems = [ ] ; // Non array structure, then force it into an array if ( ! Tools . isArray ( items ) ) { items = [ items ] ; } // Add default type to each child control Tools . each ( items , function ( item ) { if ( item ) { // Construct item if needed if ( ! ( item instanceof Control ) ) { // Name only then convert it to an object if ( typeof item == "string" ) { item = { type : item } ; } // Create control instance based on input settings and default settings settings = Tools . extend ( { } , self . settings . defaults , item ) ; item . type = settings . type = settings . type || item . type || self . settings . defaultType || ( settings . defaults ? settings . defaults . type : null ) ; item = Factory . create ( settings ) ; } ctrlItems . push ( item ) ; } } ) ; return ctrlItems ; }
Creates the specified items. If any of the items is plain JSON style objects
it will convert these into real tinymce.ui.Control instances.

@method create
@param {Array} items Array of items to convert into control instances.
@return {Array} Array with control instances.
Creates the specified items . If any of the items is plain JSON style objects it will convert these into real tinymce . ui . Control instances .