Changes between Initial Version and Version 1 of Ticket #7561, comment 5
- Timestamp:
- May 5, 2011, 12:11:18 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7561, comment 5
initial v1 8 8 We occasionally have failures on: 9 9 10 {{{ 10 11 body.getFirst() 11 12 editor.getSelection() 12 13 editor.getSelection().getRanges() 14 }}} 13 15 14 16 Our suggestion is to check these values for null before continuing in this block of code: 15 17 18 {{{ 16 19 domDocument.getBody() 17 20 editor.getSelection() 18 21 editor.getSelection().getRanges() 22 }}} 19 23 20 24 We've added code to perform these checks and no longer experience the infrequent javascript errors from trying to use null values.