Exercise: Display: Add styles to html content in description - refs BT#21560

pull/5474/head
Angel Fernando Quiroz Campos 7 months ago
parent 2975323772
commit a258a33b50
  1. 4
      public/main/exercise/exercise_submit.php
  2. 2
      public/main/exercise/overview.php

@ -1747,8 +1747,8 @@ if ($allowBlockCategory &&
if (!empty($objExercise->description)) {
if (ONE_PER_PAGE == $objExercise->type || (ONE_PER_PAGE != $objExercise->type && 1 == $i)) {
echo Display::panelCollapse(
'<span>'.get_lang('Description').'</span>',
$objExercise->description,
get_lang('Description'),
Display::div($objExercise->description, ['class' => 'exercise_description wysiwyg']),
'exercise-description',
[],
'description',

@ -129,7 +129,7 @@ if ('true' === api_get_setting('editor.save_titles_as_html')) {
// Exercise description.
if (!empty($objExercise->description)) {
$html .= Display::div($objExercise->description, ['class' => 'exercise_description']);
$html .= Display::div($objExercise->description, ['class' => 'exercise_description wysiwyg']);
}
$extra_params = '';

Loading…
Cancel
Save