Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2544

ForumNG: When not using HTML editor, format still set to FORMAT_HTML (OU Bug 11153 )

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      To reproduce, do the following:

      1. turn off JavaScript in your browser
      2. In a forum discussion, click Reply
      3. The HTML editor does not appear. Type in some text like the following:

      This

      should

      have

      multiple

      paragraphs

      4. Save the reply. Observe that the text appears in a single line.

      This is because the 'format' field in forumng_posts is set to 1 (FORMAT_HTML)
      whereas, when the html editor is not used, it should be set to 0
      (FORMAT_MOODLE).

      Two other ways to reproduce this (not tested):

      1. Post a reply on a mobile phone (e.g. iPhone). On these devices, even when
      JavaScript is enabled, the html editor is not enabled. At present the same
      thing happens. (This is how it was reported.)

      2. In user profile, set it to not use the html editor. Now even if JavaScript
      is enabled, the html editor is not enabled. Probably the same thing happens.

      Could we make it so that whatever method is used to create a forum post (reply
      or new discussion), the system detects whether the html editor was actually
      used, and defaults the format to FORMAT_MOODLE if it was not.

      note: I think there might have been a format dropdown which we are hiding, so
      this may have something to do with it. If we are hiding the dropdown, we
      probably want to keep hiding it, so this may have to do with the default
      setting for the dropdown.

        Attachments

          Activity

            People

            • Assignee:
              guoruicn Ray Guo
              Reporter:
              guoruicn Ray Guo
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: