sName = $sName; $this->sValue = null; $this->aConfig = CKEditorHelper::GetCkeditorConfiguration(true, $this->sValue); foreach (CKEditorHelper::GetJSFilesRelPathsForCKEditor() as $sJSFile) { $this->AddJsFileRelPath($sJSFile); } } /** * @see static::$sName * @return string|null * @since 3.2.0 */ public function GetName(): ?string { return $this->sName; } /** * @see static::$sValue * @return string|null */ public function GetValue(): ?string { return $this->sValue; } /** * @param string|null $sValue * @see static::$sValue * * @return $this */ public function SetValue(?string $sValue) { $this->sValue = $sValue; if(is_array($this->aConfig)) { $this->aConfig['detectChanges'] = ['initialValue' => $sValue]; } return $this; } /** * @param array $aConfig * @see static::$aConfig * * @return $this */ public function SetConfig(array $aConfig) { $this->aConfig = $aConfig; return $this; } /** * @see static::$aConfig * @return array */ public function GetConfig(): array { return $this->aConfig; } }