Moodle/TinyMCE Integration

You are not logged in. (Login)
 
Skip Main Menu

This is a test server for a temporary Moodle / TinyMCE integration. It is only intended as a temporary project while a permanent editor replacement is sorted, hopefully in Moodle version 2.

Moodle is an open source Learning Management System and TinyMCE is an open source embedded wysiwyg editor.

This integration has so far only been tested on Moodle 1.9

To try it out log in with

username = demouser

password = demouser

There are two courses set up, one to show teacher access, and one to show student. The only difference is that students do not get the advanced image and file linking options.

Site news

Picture of Glen Davies
Compression
by Glen Davies - Monday, 21 January 2008, 05:35 PM
 

I have now enabled the TinyMCE compression option, which significantly reduces the size and number of downloads required to run the editor. With this option on the editor is reduced to just two file requests with a total size of about 70kb.

I have also moved the editor script from the header.html to footer.html to improve page load speed.

The above changes are now available in release 0.3

Picture of Glen Davies
Form validation problem
by Glen Davies - Sunday, 20 January 2008, 05:27 PM
 

I think I have solved the form validation problem (which required a double submit of forms on pages with tinymce loaded.

Unfortunately this is the one thing that requires a hack of Moodle code (so will need to be re-applied if you upgrade Moodle). I can't think of any way around this at the moment.

What you need to do is open lib/formslib.php and on about line 1247 change

var ret = true;

to

tinyMCE.triggerSave();
var ret = true;


I haven't tested it extensivley yet but it appears to fix the problem.

Picture of Glen Davies
Version 0.1 of Moodle/TinyMCE3 Avaible
by Glen Davies - Thursday, 17 January 2008, 08:19 PM
 

After a week or so of tinkering I now have an integration of Moodle and TinyMCE running using a Theme override. This just involves turning off the default html editor and adding the required tinymce javascript to the theme header.html file.

I have integrated the existig Moodle htmlarea image and link dialogs. As with htmlarea these only show if the user has managefiles capability.

Still to be resolved is a problem with form verification javascript, which means you have to double submit some forms. I have modifed the forum post form to get around this, but would like to find a solution that does not require modification of all javascript verified forms.


Available Courses


Skip Adds

Adds