Web Analytics Made Easy -
StatCounter rich text editor - CodingForum

Announcement

Collapse
No announcement yet.

rich text editor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • rich text editor

    i download javascript texteditor but it gives me this error:
    document.getElementById(...').contentWindow.document.body.innerHTML is null or empty opject

    this because the file is .asp but when convert it to .htm
    it dosent give error

    how to resolve it

    the functio that contain this line is:
    function enableDesignMode(rte, html) {
    if (browser.isIE55up) {
    frames[rte].document.designMode = "On";
    setTimeout("document.getElementById('" + rte + "').contentWindow.document.body.innerHTML = '" + html + "';", 100);
    }
    else {
    document.getElementById(rte).contentDocument.designMode = "on"
    setTimeout("document.getElementById('" + rte + "').contentWindow.document.body.innerHTML = '" + html + "';", 100);
    setTimeout("document.getElementById('" + rte + "').contentDocument.designMode = 'on';", 200);
    }
    }

  • #2
    any help ?

    Comment


    • #3
      Larger timeout values. You're probably looking for the answer too quickly.
      Check out the Forum Search. It's the short path to getting great results from this forum.

      Comment

      Working...
      X