code: function( element ) {
  			var range = new CKEDITOR.dom.range( this.root );
  			range.setStartBefore( element );
  			range.setEndAfter( element );
  			this.selectRanges( [ range ] );
  		}
docs: Makes the current selection of type {@link CKEDITOR#SELECTION_ELEMENT} by enclosing the specified element.
  
  var element = editor.document.getById( 'sampleElement' );
  editor.getSelection().selectElement( element );
  
  @param {CKEDITOR.dom.element} element The element to enclose in the selection.