CKEDITOR.styleCommand
class
Generic style command. It applies a specific style when executed.
var boldStyle = new CKEDITOR.style( { element: 'strong' } );
// Register the "bold" command, which applies the bold style.
editor.addCommand( 'bold', new CKEDITOR.styleCommand( boldStyle ) );
Filtering
Methods
constructor( style, [ ext ] ) → styleCommandCKEDITOR.styleCommand#constructorCreates a styleCommand class instance.
Parameters
style : styleThe style to be applied when command is executed.
[ ext ] : ObjectAdditional command definition's properties.
Returns
styleCommand
exec( editor )CKEDITOR.styleCommand#exec