Greetings all,
is it possible to re-use images uploaded on moodle into the wysiwyg editor (with the "insert image" button)?
I tried to do some modification on the lib/rte/dlg_ins_image.html, and i have the list of uploaded files instead of the url box, but i've got an error message when i try to insert it
I rename this file in .php
at the begining
<?
require_once("../../config.php");
require_once("lib.php");
require_login();
global $basedir;
global $id;
?>
line150 :
<td width="70">Url:</td><td valign="middle" colspan="3">
<? $rootdir = $CFG->dataroot."/".$course->id;
$coursedirs = get_directory_list($rootdir, $CFG->moddata);
foreach ($coursedirs as $dir) {
$options["$dir"] = $dir;
}
choose_from_menu ($options, "reference", $form->reference);
?>
</td>
Any idea?