Editor Lite?

Re: Editor Lite? Patches for daredevils???

by Janne Mikkonen -
Number of replies: 0
At this point testing and commenting these new features would be nice wink

If one haven't used patches before here is a fast how to:
patch origfile < patchfile

If you're using Windows I suggest that you should visit at the http://gnuwin32.sourceforge.net and download some real powertools for your Windows machine.

patches:
/moodle/lib/weblib.php -> weblib.php.patch
/moodle/lib/editor/htmlarea.php -> htmlarea.php.patch
/moodle/admin/editor.php -> editor.php.patch
/moodle/admin/editor.html -> editor.html.patch
/moodle/user/edit.html -> edit.html.patch
/moodle/theme/<themeyourusing>/style.php -> style.php.patch

Cheers,
Janne

ps. Do not use in production servers...

for developers:
To pass your own config for the editor, first create a config:
$config  = 'var config = new HTMLArea.Config();' . "\n";
$config .= 'config.hideSomeButtons(" bold italic underline ");' . "\n";


pass it to use_html_editor function:
use_html_editor('', $config);
Average of ratings:Useful (1)