root/devel-backup/units/tinymce/main.php

Revision 230, 1.0 kB (checked in by sven, 3 years ago)

fixing eduforge bug 85

Line 
1 <?php
2
3     /// TinyMCE editor
4
5     global $CFG;
6     global $function;
7
8     // Add JS to embed file in weblog script
9         $function['files:embed:js'][] = path . "units/tinymce/file_embed_js.php";
10
11     // Only load the editor in the following contexts
12         $function['weblogs:edit'][] = path . "units/tinymce/tinymce_js.php";
13         $function['weblogs:posts:view:individual'][] = path . "units/tinymce/tinymce_js.php";
14
15     // What is the user preference
16         $function['userdetails:editor'][] = path . "units/tinymce/tinymce_userdetails.php";
17
18     // Action handling
19         $function['userdetails:init'][] = path . "units/tinymce/tinymce_userdetails_actions.php";
20     // TODO figure this out
21     // User details editable options
22         $function['userdetails:edit:details'][] = path . "units/tinymce/tinymce_userdetails_edit.php";
23
24     // Let the system know we've got TinyMCE loaded
25     //$CFG->plugins->tinymce = true;
26
27     // Added editor section to enable future editor choice in user config
28     $CFG->plugins->editor["tinymce"] = true;
29 ?>
30
Note: See TracBrowser for help on using the browser.