root/trunk/FCKeditor/README

Revision 397, 1.5 kB (checked in by ddavis, 2 years ago)

removed install notes, and moved them to INSTALL

Line 
1
2== Creating an mt editor plugin by example ( FCKeditor ) ==
3
4* Stop here if you are not a developer.  The installation instructions are above.
5
6* Create a directory for your plugin under the plugins directory in your mt root:
7
8  mkdir plugins/FCKeditor
9
10
11* Add a config file for the plugin.
12
13  See file: plugins/FCKeditor/config.yaml
14
15  Note that 'fckeditor' under richtext_editors, will pair with the mt-config.cgi setting 'RichTextEditor'.
16
17
18* Create a tmpl directory and the editor template file within it, maching the template line from config.yaml
19
20  See file: plugins/FCKeditor/tmpl/fck_editor.tmpl
21
22  The 'js_include', 'html_head', and 'editor_content' blocks are added to the edit entry page.
23  FckEditor will attach to the textarea in 'editor_content'
24
25
26* Add a few files to the static directory.
27
28  See file: mt-static/plugins/FCKeditor/js/fck_editor.js
29
30  fck_editor.js is included within the 'js_include' block.  It subclasses MT.App and overrides several methods.
31  ( When creating your plugin, Use fck_editor.js as a template )
32
33
34* Downoad FCK from the FCKeditor site and unzip or untar into mt-static/plugins/FCKeditor/fckeditor/
35
36  The version currently used is 2.5beta ( safari support )
37
38* Add a config directive that tells MT to use the FCKeditor plugin
39
40  mt-config.cgi (add this line)
41  ----8<----cut----8<----
42  RichTextEditor FCKeditor
43  ----8<----cut----8<----
44
45  The config setting 'RichTextEditor' determines which editor plugin is loaded.  This setting is case insensitive.
46
47 
Note: See TracBrowser for help on using the browser.