code: function( array, value ) {
  			var index = CKEDITOR.tools.indexOf( array, value );
  			return index >= 0 ? array[ index ] : null;
  		}
docs: Returns the index of an element in an array.
  
  var obj = { prop: true };
  var letters = [ 'a', 'b', 0, obj, false ];
  
  alert( CKEDITOR.tools.indexOf( letters, '0' ) ); // null
  alert( CKEDITOR.tools.indexOf( letters, function( value ) {
  // Return true when passed value has property 'prop'.
  return value && 'prop' in value;
  } ) );											// obj
  
  @param {Array} array The array to be searched.
  @param {Object/Function} value The element to be found. Can be an
  evaluation function which receives a single parameter call for
  each entry in the array, returning `true` if the entry matches.
  @returns Object The value that was found in an array.