Re: Problema de editor en cuestionario con preguntas de ensayo
Hola Juan y David,
Creo que lo encontré....aunque no se muy bien porque está hecho así.
De primeras:
En el fichero moodle/question/type/essay/questiontype.php
En la función:
function print_question_formulation_and_controls
Hacia la línea 64 (aprox), aparece:
// Only use the rich text editor for the first essay question on a page.
$usehtmleditor = can_use_html_editor() && !$htmleditorused;
que si se sustituye por:
// Only use the rich text editor for the first essay question on a page.
$usehtmleditor = can_use_html_editor();
Corrige el problema y, a priori, el funcionamiento parece correcto.
A falta de investigar POR QUÉ se ha heho así (porque parece intencionado), de esa forma aparece el Rich editor en todas las preguntas.
NOTA: Además la variable $htmleditorused esta puesta como static y a false por defecto (extraño, extraño).
Seguiré mirando a ver si descubro el motivo.
Hasta pronto,
Salu2
J. Raul (juagarc4)
Creo que lo encontré....aunque no se muy bien porque está hecho así.
De primeras:
En el fichero moodle/question/type/essay/questiontype.php
En la función:
function print_question_formulation_and_controls
Hacia la línea 64 (aprox), aparece:
// Only use the rich text editor for the first essay question on a page.
$usehtmleditor = can_use_html_editor() && !$htmleditorused;
que si se sustituye por:
// Only use the rich text editor for the first essay question on a page.
$usehtmleditor = can_use_html_editor();
Corrige el problema y, a priori, el funcionamiento parece correcto.
A falta de investigar POR QUÉ se ha heho así (porque parece intencionado), de esa forma aparece el Rich editor en todas las preguntas.
NOTA: Además la variable $htmleditorused esta puesta como static y a false por defecto (extraño, extraño).
Seguiré mirando a ver si descubro el motivo.
Hasta pronto,
Salu2
J. Raul (juagarc4)
altra soluució si no volem tocar el codi:
Hem sap greu copiar-pegar peró està molt be, es del forum del moodle.....gracies a la gent que fa tantes coses.... espere algun dia tornar a internet tantes coses com he tret...