"MDL-20988, set type name for editor element"
authorDongsheng Cai <unoter@gmail.com>
Mon, 17 May 2010 07:17:22 +0000 (07:17 +0000)
committerDongsheng Cai <unoter@gmail.com>
Mon, 17 May 2010 07:17:22 +0000 (07:17 +0000)
lib/form/editor.php

index 294d492..d9895f7 100644 (file)
@@ -13,6 +13,8 @@ require_once($CFG->dirroot.'/repository/lib.php');
 
 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);
@@ -169,7 +171,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
             $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();