Skip to content

Commit

Permalink
Merge branch '5.3' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 9, 2025
2 parents 042da0b + dac6b9e commit 8a2a7cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Security/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,16 @@ public function getHtmlEditorConfigForCMS()
$currentName = '';
$currentPriority = 0;

// If we don't have a custom config, no need to look in all groups
$editorConfigMap = HTMLEditorConfig::get_available_configs_map();
$editorConfigCount = count($editorConfigMap);
if ($editorConfigCount === 0) {
return 'cms';
}
if ($editorConfigCount === 1) {
return key($editorConfigMap);
}

foreach ($this->Groups() as $group) {
$configName = $group->HtmlEditorConfig;
if ($configName) {
Expand Down

0 comments on commit 8a2a7cc

Please sign in to comment.