== Creating an mt editor plugin by example ( FCKeditor ) == * Stop here if you are not a developer. The installation instructions are above. * Create a directory for your plugin under the plugins directory in your mt root: mkdir plugins/FCKeditor * Add a config file for the plugin. See file: plugins/FCKeditor/config.yaml Note that 'fckeditor' under richtext_editors, will pair with the mt-config.cgi setting 'RichTextEditor'. * Create a tmpl directory and the editor template file within it, maching the template line from config.yaml See file: plugins/FCKeditor/tmpl/fck_editor.tmpl The 'js_include', 'html_head', and 'editor_content' blocks are added to the edit entry page. FckEditor will attach to the textarea in 'editor_content' * Add a few files to the static directory. See file: mt-static/plugins/FCKeditor/js/fck_editor.js fck_editor.js is included within the 'js_include' block. It subclasses MT.App and overrides several methods. ( When creating your plugin, Use fck_editor.js as a template ) * Downoad FCK from the FCKeditor site and unzip or untar into mt-static/plugins/FCKeditor/fckeditor/ The version currently used is 2.5beta ( safari support ) * Add a config directive that tells MT to use the FCKeditor plugin mt-config.cgi (add this line) ----8<----cut----8<---- RichTextEditor FCKeditor ----8<----cut----8<---- The config setting 'RichTextEditor' determines which editor plugin is loaded. This setting is case insensitive.