WYSIWYG Editor Implemented

Forum > monoEdit

Miles

Posts: 128
01/07/2010 01:52 am
There is not a WYSIWYG version but I will post instructions of how to install TinyMCE here.

Miles

Posts: 128
01/07/2010 01:53 am
If you wish to add tinymce to monoEdit, first go to http://tinymce.moxiecode.com/download.php to download the latest version.

Unzip the contents of the file into the same directory as where monoEdit is stored (or the parent directory if you don't want to see all the tinymce files when using monoEdit!).

You then need to open up the monoEdit PHP file and go to around line 1114:

$content_output .= '<h3>'.$mode_title.'</h3>'

Above this line add:

$content_output .= '<script type="text/javascript" src="scripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
</script>';

You may need to adjust the path "scripts/tiny_mce/tiny_mce.js" according to where you chose to install tinymce and you can adjust the tinymce configuration within that code too (see http://tinymce.moxiecode.com/examples/simple.php for more info about configuration).

It is probably better to install tinymce in the parent directory to where monoEdit is so you don't see all its files when using monoEdit. I'm pretty sure that should just work.

Quick Reply