mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36: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
|
@ -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