class AddStyleSheetCommand implements CommandInterface (View source)

AJAX command to add style sheets to a CKEditor instance.

Properties

protected string $editorId

The CKEditor instance ID.

protected string[] $styleSheets

The style sheet URLs to add to the CKEditor instance.

Methods

__construct(string $editor_id, array $stylesheets = [])

AddStyleSheetCommand constructor.

$this
addStyleSheet(string $stylesheet)

Adds a style sheet to the CKEditor instance.

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(string $editor_id, array $stylesheets = [])

AddStyleSheetCommand constructor.

Parameters

string $editor_id

The CKEditor instance ID.

array $stylesheets

The style sheet URLs to add to the CKEditor instance.

$this addStyleSheet(string $stylesheet)

Adds a style sheet to the CKEditor instance.

Parameters

string $stylesheet

The style sheet URL.

Return Value

$this

The called object, for chaining.

render()

Return an array to be run through json_encode and sent to the client.