'wysiwyg_editor', 'label' => E::ts('CKEditor 4'), 'name' => 'CKEditor', 'is_default' => 1, ]); } /** * Uninstall CKEditor settings. */ public function uninstall() { $domains = civicrm_api3('Domain', 'get', ['options' => ['limit' => 0]])['values']; foreach ($domains as $domain) { $currentSetting = \Civi::settings($domain['id'])->get('editor_id'); if ($currentSetting === 'CKEditor') { \Civi::setttings($domain['id'])->set('editor_id', 'Textarea'); } } civicrm_api3('OptionValue', 'get', ['name' => 'CKEditor', 'api.option_value.delete' => ['id' => "\$value.id"]]); } }