Class CKEDITOR.commandDefinition
Defined in: core/commanddefinition.js.
Constructor Attributes | Constructor Name and Description |
---|---|
(Virtual Class) Do not call this constructor.
|
Method Attributes | Method Name and Description |
---|---|
exec(editor, data)
Executes the command.
|
Class Detail
CKEDITOR.commandDefinition()
Since:
3.0
(Virtual Class) Do not call this constructor. This class is not really part
of the API. It just illustrates the features of command objects to be
passed to the CKEDITOR.editor.prototype.addCommand function.
Method Detail
{Undefined}
exec(editor, data)
Since:
3.0
Executes the command.
editorInstance.addCommand( 'sample', { exec : function( editor ) { alert( 'Executing a command for the editor name "' + editor.name + '"!' ); } });
- Parameters:
- {CKEDITOR.editor} editor
- The editor within which run the command.
- {Object} data Optional
- Additional data to be used to execute the command.