Opened 13 years ago

Closed 13 years ago

#59 closed defect (fixed)

Javascript error in IE 6.0 when using Del or Backspace on an image

Reported by: mark.zeitler@… Owned by: guillaumed
Priority: high Milestone:
Component: Xinha Core Version: 0.1
Severity: major Keywords:
Cc:

Description

In the latest nightly build, when you select an image and press the backspace or delete key using IE, it generates a javascript error.

Change History (3)

comment:1 Changed 13 years ago by mark.zeitler@…

The problem seems to be in the 'HTMLArea.prototype.ie_checkBackspace' function. This only happens when only a image is selected, therefore I suggest checking the range.text value.

HTMLArea.prototype.ie_checkBackspace = function() {

var sel = this._getSelection();
var range = this._createRange(sel);
if (range.text == "undefined")

return true;

var r2 = range.duplicate();

comment:2 Changed 13 years ago by guillaumed

  • Owner changed from gogo to guillaumed
  • Status changed from new to assigned

comment:3 Changed 13 years ago by guillaumed

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.