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

enable rich html formatting in forum's intro textbox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 2.0
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      moodle 1.9.2 , mysql 5, php 5, apache 2
    • Database:
      MySQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              nadavkav Nadav Kavalerchik
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10