MDL-75940 editor_tiny: Allow administrators to disable Tiny branding

Part of MDL-75966
This commit is contained in:
Andrew Nicols
2022-11-10 19:53:13 +08:00
parent a809f82862
commit 07b9f384a2
6 changed files with 65 additions and 2 deletions
+3
View File
@@ -161,6 +161,7 @@ class editor extends \texteditor {
}
// Generate the configuration for this editor.
$siteconfig = get_config('editor_tiny');
$config = (object) [
// The URL to the CSS file for the editor.
'css' => $PAGE->theme->editor_css_url()->out(false),
@@ -173,6 +174,8 @@ class editor extends \texteditor {
'currentLanguage' => current_language(),
'branding' => property_exists($siteconfig, 'branding') ? !empty($siteconfig->branding) : true,
// Language options.
'language' => [
'currentlang' => current_language(),