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

htmlarea editor does not show when clicking reply or edit on the discuss(.php) page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.9.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Moodle 1.9.10 (clean install) + forumng 2.33
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      when clicking the reply ro edit links on the buttom of a discussion or a reply to a discussion
      on the discuss.php page, i get a blank textarea with no htmlarea editor.

      looking into the code i get some errors (while the page loaded)
      JS error: textarea is null on line 564

      (htmlarea.php)
      HTMLArea.prototype.generate = function () {
      553 var editor = this; // we'll need "this" in some nested functions
      554
      555 // get the textarea
      556 var textarea = this._textArea;
      557 if (typeof textarea == "string")

      { 558 // it's not element but ID 559 this._textArea = textarea = HTMLArea.getElementById("textarea", textarea); 560 }

      561 // Fix for IE's sticky bug. Editor doesn't load
      562 // editing area.
      563 var height;
      564 if ( textarea.offsetHeight && textarea.offsetHeight > 0 ) {

      It seems, that : textarea = HTMLArea.getElementById("textarea", textarea);
      return null.
      and textarea is not found on the document. (funny)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: