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

pull/5474/head
Angel Fernando Quiroz Campos 1 year 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 (!empty($objExercise->description)) {
if (ONE_PER_PAGE == $objExercise->type || (ONE_PER_PAGE != $objExercise->type && 1 == $i)) { if (ONE_PER_PAGE == $objExercise->type || (ONE_PER_PAGE != $objExercise->type && 1 == $i)) {
echo Display::panelCollapse( echo Display::panelCollapse(
'<span>'.get_lang('Description').'</span>', get_lang('Description'),
$objExercise->description, Display::div($objExercise->description, ['class' => 'exercise_description wysiwyg']),
'exercise-description', 'exercise-description',
[], [],
'description', 'description',

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

Loading…
Cancel
Save