AddStyleSheetCommand
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.
$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.