mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Adding tinymce needed defaults and new $CFG property 'editorsrc'
This commit is contained in:
parent
1b1d34225b
commit
c2db12af42
2 changed files with 15 additions and 3 deletions
|
@ -71,15 +71,15 @@
|
||||||
'notifyloginthreshold' => 10,
|
'notifyloginthreshold' => 10,
|
||||||
'opentogoogle' => false,
|
'opentogoogle' => false,
|
||||||
'pathtoclam' => '',
|
'pathtoclam' => '',
|
||||||
'pathtodu' => '',
|
'pathtodu' => '',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'perfdebug' => 0,
|
'perfdebug' => 0,
|
||||||
'proxyhost' => '',
|
'proxyhost' => '',
|
||||||
'proxyport' => '',
|
'proxyport' => '',
|
||||||
'quarantinedir' => '',
|
'quarantinedir' => '',
|
||||||
'requestedteachername' => '',
|
'requestedteachername' => '',
|
||||||
'requestedteachersname' => '',
|
'requestedteachersname' => '',
|
||||||
'requestedstudentname' => '',
|
'requestedstudentname' => '',
|
||||||
'requestedstudentsname' => '',
|
'requestedstudentsname' => '',
|
||||||
'restrictmodulesfor' => 'none',
|
'restrictmodulesfor' => 'none',
|
||||||
'restrictbydefault' => 0,
|
'restrictbydefault' => 0,
|
||||||
|
@ -106,6 +106,11 @@
|
||||||
'theme' => 'standardwhite',
|
'theme' => 'standardwhite',
|
||||||
'themelist' => '',
|
'themelist' => '',
|
||||||
'timezone' => 99,
|
'timezone' => 99,
|
||||||
|
'tinymceplugins' => 'advimage,fullscreen',
|
||||||
|
'tinymcetheme' => 'advanced',
|
||||||
|
'tinymcecontentcss' => $CFG->httpswwwroot .'/lib/editor/tinymce/moodlecontent.css',
|
||||||
|
'tinymcepopupcss' => '',
|
||||||
|
'tinymceeditorcss' => '',
|
||||||
'unzip' => '',
|
'unzip' => '',
|
||||||
'zip' => ''
|
'zip' => ''
|
||||||
);
|
);
|
||||||
|
|
|
@ -8,6 +8,13 @@
|
||||||
if(!empty($CFG->aspellpath)) { // Enable global access to spelling feature.
|
if(!empty($CFG->aspellpath)) { // Enable global access to spelling feature.
|
||||||
echo '<script language="JavaScript" type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/speller/spellChecker.js"></script>'."\n";
|
echo '<script language="JavaScript" type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/speller/spellChecker.js"></script>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !empty($CFG->editorsrc) ) {
|
||||||
|
foreach ( $CFG->editorsrc as $scriptsource ) {
|
||||||
|
echo '<script language="javascript" type="text/javascript" src="'. $scriptsource .'"></script>'."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!--<style type="text/css">/*<![CDATA[*/ body{behavior:url(<?php echo $CFG->httpswwwroot ?>/lib/csshover.htc);} /*]]>*/</style>-->
|
<!--<style type="text/css">/*<![CDATA[*/ body{behavior:url(<?php echo $CFG->httpswwwroot ?>/lib/csshover.htc);} /*]]>*/</style>-->
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue