code: function( name, definition )
  	{
  		if ( this.registered[ name ] )
  			throw '[CKEDITOR.resourceManager.add] The resource name "' + name + '" is already registered.';
  
  		CKEDITOR.fire( name + CKEDITOR.tools.capitalize( this.fileName ) + 'Ready',
  				this.registered[ name ] = definition || {} );
  	}
docs: Registers a resource.
  @param {String} name The resource name.
  @param {Object} [definition] The resource definition.
  @example
  CKEDITOR.plugins.add( 'sample', { ... plugin definition ... } );
  @see CKEDITOR.pluginDefinition