Report an issue
Class

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 ] ) → styleCommand

    Creates a styleCommand class instance.

    Parameters

    style : style

    The style to be applied when command is executed.

    [ ext ] : Object

    Additional command definition's properties.

    Returns

    styleCommand
  • exec( editor )

    Parameters

    editor : editor