Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"MDL-20988, set type name for editor element"
  • Loading branch information
Dongsheng Cai committed May 17, 2010
1 parent 87c215d commit 775af58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/form/editor.php
Expand Up @@ -13,6 +13,8 @@

class MoodleQuickForm_editor extends HTML_QuickForm_element {
public $_helpbutton = '';

public $_type = 'editor';
protected $_options = array('subdirs'=>0, 'maxbytes'=>0, 'maxfiles'=>0, 'changeformat'=>0,
'context'=>null, 'noclean'=>0, 'trusttext'=>0);
protected $_values = array('text'=>null, 'format'=>null, 'itemid'=>null);
Expand Down Expand Up @@ -169,7 +171,7 @@ function toHtml() {
$image_options = initialise_filepicker($args);

$args->accepted_types = array('video', 'media');
$media_options = initialise_filepicker($args);
$media_options = initialise_filepicker($args);

$image_options->client_id = uniqid();
$media_options->client_id = uniqid();
Expand Down

0 comments on commit 775af58

Please sign in to comment.