Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18732

enable rich html formatting in forum's intro textbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 1.9.2
    • Forum
    • None
    • moodle 1.9.2 , mysql 5, php 5, apache 2
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_20_STABLE
    • Easy

      teachers complaint to me that the HTML layouts (rich formatting) they apply to the intro box of forums does not
      show up after they apply it and show it to the students.
      especially problematic when some of the text is justified to the right (Hebrew rtl) and some instructions are
      (supposed to be) justified to the left (English ltr)

      so i found out that the intro field is filtered by the format_text() function.
      i removed it since i see no point (security wise) to have this specific piece of content filtered since the teachers
      are responsible for the content and most of the time they try to embed multimedia and rich HTML code for the
      benefit of the students.

      so i change mod/forum/view.php (line 260) from
      print_box(format_text($forum->intro), 'generalbox', 'intro');
      to...
      print_box($forum->intro, 'generalbox', 'intro');

      i hope it is ok

            samhemelryk Sam Hemelryk
            nadavkav Nadav Kavalerchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.