MDL-75940 editor_tiny: Allow administrators to disable Tiny branding
Part of MDL-75966
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user