public/ckeditor/4.4dev/core/dom/node.js
function( closerFirst ) {
		var node = this;
		var parents = [];

		do {
			parents[ closerFirst ? 'push' : 'unshift' ]( node );
		}
		while ( ( node = node.getParent() ) );

		return parents;
	}
function( closerFirst ) {
		var node = this;
		var parents = [];

		do {
			parents[ closerFirst ? 'push' : 'unshift' ]( node );
		}
		while ( ( node = node.getParent() ) );

		return parents;
	}
function ( closerFirst ) { var node = this ; var parents = [ ] ; do { parents [ closerFirst ? 'push' : 'unshift' ] ( node ) ; } while ( ( node = node . getParent ( ) ) ) ; return parents ; }
Returns an array containing node parents and the node itself. By default nodes are in _descending_ order.

// Assuming that body has paragraph as the first child.
var node = editor.document.getBody().getFirst();
var parents = node.getParents();
alert( parents[ 0 ].getName() + ',' + parents[ 2 ].getName() ); // 'html,p'

@param {Boolean} [closerFirst=false] Determines the order of returned nodes.
@returns {Array} Returns an array of {@link CKEDITOR.dom.node}.
Returns an array containing node parents and the node itself . By default nodes are in _descending_ order .