Alpha plugin for FCKEditor
Alpha plugin for FCKEditor
I have modified the plugin to work with CKeditor.
Currently, codecogs script to work with FCKeditor http://latex.codecogs.com/editor_json.php?type=url of course expects FCKeditor methods. Therefore, the plugin script used has to 'pretend' it is FCKeditor to work.
For CKeditor:
1. Copy the http://latex.codecogs.com/integration/fckeditor/editor/plugins/equation_html/ directory and files to your CKeditor plugins folder. 2. Replace fckplugin.js there with the attached plugin.js file. 3. Edit the CKEditor config.js file. In the CKEDITOR.editorConfig section, add the following line:config.extraPlugins = 'equation_html';4. In the same CKEDITOR.editorConfig section, amend the toolbar section to include the equation editor button ['Equation'] (don't forget to add the correct commas between the toolbar buttons):
CKEDITOR.config.toolbar_Default = [ ['Source','-','Save','NewPage','Preview','-','Templates'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['Link','Unlink','Anchor'], '/', ['Styles','Format','Font','FontSize'], ['Equation'] ];
Would be good to get any feedback about this. Thanks.
Login