diff --git a/editors/ace.inc b/editors/ace.inc index 20a89a8..10a9aad 100644 --- a/editors/ace.inc +++ b/editors/ace.inc @@ -68,8 +68,12 @@ function wysiwyg_ace_version($editor) { * Themes callback for wysiwyg_ace_editor(). */ function wysiwyg_ace_themes($editor, $profile) { - $themes = wysiwyg_ace_themes_rich(); - return array_keys($themes); + $groups = wysiwyg_ace_themes_rich(); + $themes = array(); + foreach ($groups as $group) { + $themes = array_merge($themes, array_keys($group)); + } + return $themes; } /** @@ -80,34 +84,38 @@ function wysiwyg_ace_themes($editor, $profile) { */ function wysiwyg_ace_themes_rich() { return array( - 'ambiance' => t('Ambiance'), - 'chrome' => t('Chrome'), - 'clouds' => t('Clouds'), - 'clouds_midnight' => t('Clouds Midnight'), - 'cobalt' => t('Cobalt'), - 'crimson_editor' => t('Crimson Editor'), - 'dawn' => t('Dawn'), - 'dreamweaver' => t('Dreamweaver'), - 'eclipse' => t('Eclipse'), - 'github' => t('GitHub'), - 'idle_fingers' => t('idleFingers'), - 'kr_theme' => t('krTheme'), - 'merbivore' => t('Merbivore'), - 'merbivore_soft' => t('Merbivore Soft'), - 'mono_industrial' => t('Mono Industrial'), - 'monokai' => t('Monokai'), - 'pastel_on_dark' => t('Pastel on Dark'), - 'solarized_dark' => t('Solarized Dark'), - 'solarized_light' => t('Solarized Light'), - 'textmate' => t('TextMate'), - 'tomorrow' => t('Tomorrow'), - 'tomorrow_night' => t('Tomorrow Night'), - 'tomorrow_night_blue' => t('Tomorrow Night Blue'), - 'tomorrow_night_bright' => t('Tomorrow Night Bright'), - 'tomorrow_night_eighties' => t('Tomorrow Night 80s'), - 'twilight' => t('Twilight'), - 'vibrant_ink' => t('Vibrant Ink'), - 'xcode' => t('XCode'), + 'Bright' => array( + 'chrome' => t('Chrome'), + 'clouds' => t('Clouds'), + 'crimson_editor' => t('Crimson Editor'), + 'dawn' => t('Dawn'), + 'dreamweaver' => t('Dreamweaver'), + 'eclipse' => t('Eclipse'), + 'github' => t('GitHub'), + 'solarized_light' => t('Solarized Light'), + 'textmate' => t('TextMate'), + 'tomorrow' => t('Tomorrow'), + 'xcode' => t('XCode'), + ), + 'Dark' => array( + 'ambiance' => t('Ambiance'), + 'clouds_midnight' => t('Clouds Midnight'), + 'cobalt' => t('Cobalt'), + 'idle_fingers' => t('idleFingers'), + 'kr_theme' => t('krTheme'), + 'merbivore' => t('Merbivore'), + 'merbivore_soft' => t('Merbivore Soft'), + 'mono_industrial' => t('Mono Industrial'), + 'monokai' => t('Monokai'), + 'pastel_on_dark' => t('Pastel on Dark'), + 'solarized_dark' => t('Solarized Dark'), + 'twilight' => t('Twilight'), + 'tomorrow_night' => t('Tomorrow Night'), + 'tomorrow_night_blue' => t('Tomorrow Night Blue'), + 'tomorrow_night_bright' => t('Tomorrow Night Bright'), + 'tomorrow_night_eighties' => t('Tomorrow Night 80s'), + 'vibrant_ink' => t('Vibrant Ink'), + ), ); }