Index: blocks/html/block_html.php
===================================================================
RCS file: /cvsroot/moodle/moodle/blocks/html/block_html.php,v
retrieving revision 1.21
diff -r1.21 block_html.php
47a48,61
> 
>     /**
>      * Serialize and store config data
>      */
>     function instance_config_save($data, $nolongerused = false) {
>         global $DB;
> 
>         // Move embedded files into a proper filearea and adjust HTML links to match
>         $data->text['text'] = file_save_draft_area_files($this->instance->id, $this->context->id, 'block_html_config_text', $this->instance->id, array('subdirs'=>true), $data->text['text']);
> 
>         parent::instance_config_save($data, $nolongerused);
>     }
> 
> 
Index: blocks/html/edit_form.php
===================================================================
RCS file: /cvsroot/moodle/moodle/blocks/html/edit_form.php,v
retrieving revision 1.4
diff -r1.4 edit_form.php
34c34
<         // Fields for editing HTML block title and contents.
---
>         // Title and heading fields
40c40,42
<         // TODO MDL-19844 still needs to be fixed to support files properly
---
>         // Contents field, with editor and embedded files support
>         $draftid_editor = file_get_submitted_draft_itemid('block_html_config_text');
>         $this->block->config->text['text'] = file_prepare_draft_area($draftid_editor, $this->block->context, 'block_html_config_text', empty($this->block->id) ? null : $this->block->id, array('subdirs'=>true), $this->block->config->text['text']);
