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