changing the html editor

changing the html editor

by Edward Stone -
Number of replies: 6

A colleague has asked, how accessible is the html the editor produces? I couldnt answer this, any ideas? I think the code it produces may be bloated. My second question is, can I replace the editor with another that is still embedded in Moodle, if so, what options are there.

Finally, are there any plans to update the editor in the future?

Average of ratings: -
In reply to Edward Stone

Re: changing the html editor

by Mauno Korpelainen -
Accessibility is a large issue and moodle tries to output as accessible XHTML as possible http://docs.moodle.org/en/Category:Accessibility - HTMLArea itself is not totally accessible and it will be replaced with TinyMCE in coming moodle 2.0.

You can replace HTMLArea with TinyMCE also in moodle 1.9 with a couple of methods ( for example http://moodle.org/mod/forum/discuss.php?d=107550 ) but none of these integrations is fully functional...
In reply to Mauno Korpelainen

Re: changing the html editor

by Craig Gunderson -
I have found Mauno's Math theme-based solution to work very well.

But at the end of the day, this should be easier to do.
In reply to Craig Gunderson

Re: changing the html editor

by Mauno Korpelainen -

Thanks Craig,

this issue will be solved by time in moodle 2.0 with a proper integration of tinymce.

My Math-theme-based solution (among other theme based solutions) was one workaround for many such issues that were not possible with current core code of moodle - like using of asciimath and asciisvg in editor and plugins - and the only reason for choosing theme based integration was that I needed a solution that would be relatively easy to install for normal users without changing core files. As such it was rather functional and good for testing different features but still far from a fully functional solution with all the needed moodle modifications from htmlarea and new required features of tinymce...

It may just take a year or two to see the final stable version of moodle 2.0 with fully tested and finetuned TinyMCE.

In reply to Edward Stone

Re: changing the html editor

by Paula Clough -

Edward,

If you only want to modify the html to fancy up a database page or the webpage resource or to the labels on your course page, it's accessible through the editor with the <> icon. It has been easy for me to edit.  I have also used an outside html editor such as Nvu where I could really play with it and then copied the code I created into the Moodle editor.  It worked great. 

Paula Clough cool

In reply to Paula Clough

Re: changing the html editor

by Diipak Gupta -
I integrated tiny MCE with moodle 1.9.2plus using integration steps mentioned at http://web2life.co.nz/content/tinymce-and-moodle-howto.

After integration, images are not getting displayed anywhere on the website. The files are available in the files folder in moodle.
In reply to Diipak Gupta

Re: changing the html editor

by Mauno Korpelainen -

A red text on that site says

"You should check out Glen Davies implementation. It is more complete than mine. I will also be joining forces with him to do future development. You can access his site here: http://www.host4learning.com/moodlemce/ "

Glen's site has a text

"Sorry, I have changed jobs so I am no-longer maitaining the Moodle 1.9 TinyMCE integration. If you want a copy of Moodle 1.9 with TinyMCE please look at
http://moodle.org/mod/forum/discuss.php?d=107550 "

and this leads to the same link I gave in previous

http://moodle.org/mod/forum/discuss.php?d=131141#p573977

If images are not displaying you should probably check first with mouse right click over image what the address looks like...

The problem may be some wrong path etc but I can't say for sure because I have never tried the integration from host4learning.com