Ticket #202 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Immediately after loading examples-body page the insert-image fails

Reported by: anonymous Owned by: gogo
Priority: low Milestone: Version 1.0
Component: Xinha Core Version: trunk
Severity: minor Keywords: insertimage focus
Cc:

Description

Load the examples/full_example-body.html (not the frameset page) into IE6 browser. If you then immediately try to add an image, when you click ok in the insert-image dialog you get a 'null' error.

I think its because the textarea didn't have focus to start, and the code is unable to find the newly added img tag.

Change History

Changed 8 years ago by gogo

  • priority changed from normal to low
  • severity changed from normal to minor

Yes, that would be correct, perhaps we should make the toolbar disabled until the editor is focused.

Changed 8 years ago by gogo

  • version set to trunk
  • milestone set to Version 1.0

Changed 8 years ago by gogo

As of changeset:161 the toolbar is not active until the editor is activated (focused), this should solve the problem mostly but I think it may still be tricky if the user clicks outside of the editor and then clicks the image button as the editor is still active at that point but not focused?

Changed 8 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

I think this can be closed now (incidentally, just tested and even if you click out of ther editor insert image is working properly).

Note: See TracTickets for help on using tickets.