tinymce.full.js
function (selector) {
        var self = this, ctrl, parents = new Collection();

        // Add each parent to collection
        for (ctrl = self.parent(); ctrl; ctrl = ctrl.parent()) {
          parents.add(ctrl);
        }

        // Filter away everything that doesn't match the selector
        if (selector) {
          parents = parents.filter(selector);
        }

        return parents;
      }
function (selector) {
        var self = this, ctrl, parents = new Collection();

        // Add each parent to collection
        for (ctrl = self.parent(); ctrl; ctrl = ctrl.parent()) {
          parents.add(ctrl);
        }

        // Filter away everything that doesn't match the selector
        if (selector) {
          parents = parents.filter(selector);
        }

        return parents;
      }
function ( selector ) { var self = this , ctrl , parents = new Collection ( ) ; // Add each parent to collection for ( ctrl = self . parent ( ) ; ctrl ; ctrl = ctrl . parent ( ) ) { parents . add ( ctrl ) ; } // Filter away everything that doesn't match the selector if ( selector ) { parents = parents . filter ( selector ) ; } return parents ; }
Returns a control collection with all parent controls.

@method parents
@param {String} selector Optional selector expression to find parents.
@return {tinymce.ui.Collection} Collection with all parent controls.
Returns a control collection with all parent controls .