Skip to content
Snippets Groups Projects
Commit 7b904a8e authored by dczepierga's avatar dczepierga
Browse files

[#1851606] by dczepierga: Add support for CKEditor v4

parent d3e87bd4
No related branches found
No related tags found
No related merge requests found
......@@ -531,6 +531,20 @@ function ckeditor_admin_profile_form($form_state, $profile = NULL) {
'#description' => t('If this option is enabled, a link to a popup window will be used instead of a textarea replace.'),
);
//if skin is not set or not exists select default skin (moono or skin) or first on the skin list
if (empty($profile->settings['skin']) || (!empty($profile->settings['skin']) && !array_key_exists($profile->settings['skin'], $skin_options))) {
if (count($skin_options) > 0) {
if (array_key_exists('moono', $skin_options)) {
$profile->settings['skin'] = 'moono';
}
else if (array_key_exists('kama', $skin_options)) {
$profile->settings['skin'] = 'kama';
}
else {
$profile->settings['skin'] = $skin_options[0];
}
}
}
$form['appearance']['skin'] = array(
'#type' => 'select',
'#title' => t('Skin'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment