Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 140... Línea 140...
140
     *
140
     *
141
     * @param string $elementid
141
     * @param string $elementid
142
     * @param array $options
142
     * @param array $options
143
     * @param null $fpoptions
143
     * @param null $fpoptions
144
     */
144
     */
145
    public function use_editor($elementid, array $options = null, $fpoptions = null) {
145
    public function use_editor($elementid, ?array $options = null, $fpoptions = null) {
146
        global $PAGE;
146
        global $PAGE;
Línea 147... Línea 147...
147
 
147
 
148
        // Ensure that the default configuration is set.
148
        // Ensure that the default configuration is set.
Línea 176... Línea 176...
176
            'draftitemid' => 0,
176
            'draftitemid' => 0,
Línea 177... Línea 177...
177
 
177
 
Línea 178... Línea 178...
178
            'currentLanguage' => current_language(),
178
            'currentLanguage' => current_language(),
-
 
179
 
Línea 179... Línea 180...
179
 
180
            'branding' => property_exists($siteconfig, 'branding') ? !empty($siteconfig->branding) : true,
180
            'branding' => property_exists($siteconfig, 'branding') ? !empty($siteconfig->branding) : true,
181
            'extended_valid_elements' => $siteconfig->extended_valid_elements ?? 'script[*],p[*],i[*]',
181
 
182
 
182
            // Language options.
183
            // Language options.