Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 114... Línea 114...
114
            'maxbytes' => $CFG->maxbytes,
114
            'maxbytes' => $CFG->maxbytes,
115
            'maxfiles' => EDITOR_UNLIMITED_FILES,
115
            'maxfiles' => EDITOR_UNLIMITED_FILES,
116
            'changeformat' => 1,
116
            'changeformat' => 1,
117
            'trusttext' => true,
117
            'trusttext' => true,
118
        ];
118
        ];
119
        $objs = $mform->createElement('editor', 'content', get_string('content', 'tool_usertours'), null, $editoroptions);
119
        $mform->addElement('editor', 'content', get_string('content', 'tool_usertours'), null, $editoroptions);
120
        // TODO: MDL-68540 We need to add the editor to a group element because editor element will not work with hideIf.
-
 
121
        $mform->addElement('group', 'contenthtmlgrp', get_string('content', 'tool_usertours'), [$objs], ' ', false);
-
 
122
        $mform->addHelpButton('contenthtmlgrp', 'content', 'tool_usertours');
120
        $mform->addHelpButton('content', 'content', 'tool_usertours');
123
        $mform->hideIf('contenthtmlgrp', 'contenttype', 'eq', static::CONTENTTYPE_LANGSTRING);
121
        $mform->hideIf('content', 'contenttype', 'eq', static::CONTENTTYPE_LANGSTRING);
Línea 124... Línea 122...
124
 
122
 
125
        // Add the step configuration.
123
        // Add the step configuration.
126
        $mform->addElement('header', 'heading_options', get_string('options_heading', 'tool_usertours'));
124
        $mform->addElement('header', 'heading_options', get_string('options_heading', 'tool_usertours'));
127
        // All step configuration is defined in the step.
125
        // All step configuration is defined in the step.