root/devel/mod/tinymce/lib.php

Revision 1540, 1.3 kB (checked in by renato, 10 months ago)

Setting prop svn:eol-style in another lot of files.

  • Property svn:eol-style set to native
Line 
1 <?php
2     /// TinyMCE editor <tinymce.moxiecode.com/> integration
3
4     function tinymce_pagesetup() {
5         global $CFG;
6         global $function;
7     
8         // Add JS to embed file in weblog script
9         $function['files:embed:js'][] = $CFG->dirroot . "mod/tinymce/file_embed_js.php";
10
11         // Only load the editor in the following contexts
12         $function['weblogs:edit'][] = $CFG->dirroot . "mod/tinymce/tinymce_js.php";
13         $function['weblogs:posts:view:individual'][] = $CFG->dirroot . "mod/tinymce/tinymce_js.php";
14         $function['tinymce:include'][] = $CFG->dirroot . "mod/tinymce/tinymce_js.php";
15
16         // What is the user preference
17         $function['userdetails:editor'][] = $CFG->dirroot . "mod/tinymce/tinymce_userdetails.php";
18         
19         // TODO figure this out
20         // User details editable options
21         $function['userdetails:edit:details'][] = $CFG->dirroot . "mod/tinymce/tinymce_userdetails_edit.php";
22
23         // Added editor section to enable future editor choice in user config
24         $CFG->plugins->editor["tinymce"] = true;
25     }
26     
27     function tinymce_init() {
28         global $CFG, $function;
29         
30         // Action handling (user preference)
31         $function['userdetails:init'][] = $CFG->dirroot . "mod/tinymce/tinymce_userdetails_actions.php";
32     }
33 ?>
34
Note: See TracBrowser for help on using the browser.