Adding tinymce needed defaults and new $CFG property 'editorsrc'

This commit is contained in:
julmis 2006-03-04 14:52:50 +00:00
parent 1b1d34225b
commit c2db12af42
2 changed files with 15 additions and 3 deletions

View file

@ -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' => ''
); );

View file

@ -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>-->