Hello everyone!
I have completed an important step in the Moodle 2 integration of the paint tool I have worked on this summer.
PaintWeb is now integrated into TinyMCE 3, inside Moodle 2. Image saving and loading works completely dynamic, without any page reloads (AJAX style).
I have published my Git repository at repo.or.cz. Please checkout the mdl20-paintweb branch:
git clone git://repo.or.cz/moodle/mihaisucan.git ~/src/moodle
cd ~/src/moodle
git checkout -b mdl20-paintweb origin/mdl20-paintweb
The PaintWeb codebase is found in the lib/paintweb folder. The PaintWeb-side of Moodle integration is inside lib/paintweb/ext/ - where you find code for Moodle and the TinyMCE plugin I wrote.
I prepared a wiki page with details about the work I did on Moodle 2 integration. This should get you started.
I would like feedback and reviewing of the image save script I wrote - please see lib/paintweb/ext/moodle/imagesave20.php. This uses the new File API - which is really great. I really liked working with it.
Additionally, I would very much appreciate if Petr Škoda and the other people who are involved with the HTML editor embedding code, could take a look at my patch for the lib/editor/tinymce/lib.php file. That's where I worked on integrating PaintWeb into TinyMCE for Moodle - it's the place where my TinyMCE plugin is loaded.
Thank you very much!