Chris@0: editorId = $editor_id; Chris@0: $this->styleSheets = $stylesheets; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Adds a style sheet to the CKEditor instance. Chris@0: * Chris@0: * @param string $stylesheet Chris@0: * The style sheet URL. Chris@0: * Chris@0: * @return $this Chris@0: * The called object, for chaining. Chris@0: */ Chris@0: public function addStyleSheet($stylesheet) { Chris@0: $this->styleSheets[] = $stylesheet; Chris@0: return $this; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function render() { Chris@0: return [ Chris@0: 'command' => 'ckeditor_add_stylesheet', Chris@0: 'editor_id' => $this->editorId, Chris@0: 'stylesheets' => $this->styleSheets, Chris@0: ]; Chris@0: } Chris@0: Chris@0: }