Commit 6969f5c
authored
fix(range) Allow reading range from DOM when editor is disabled (#476)
Because `_readRangeFromDOM` doesn't do anything
if the editor is non-editable, the editor may get stuck with a range
that is pointing at a section that has been removed from the post.
This causes the error seen when doing the `post.walkAllLeafSections`
later in the snapshot code. The post is undefined because it is read off
the card, but the card that the range points at has been removed.
Fixes #4751 parent 235f7a3 commit 6969f5c
File tree
3 files changed
+76
-175
lines changed- src/js/editor
- tests
- acceptance
- helpers
3 files changed
+76
-175
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | 398 | | |
402 | 399 | | |
403 | 400 | | |
| |||
0 commit comments