Catch errors due to "Restricted" selection. #2905
This commit is contained in:
parent
19268975ea
commit
2a47dfd8ba
@ -295,6 +295,7 @@ QR =
|
||||
postRange.selectNode root
|
||||
text = if post.board.ID is g.BOARD.ID then ">>#{post}\n" else ">>>/#{post.board}/#{post}\n"
|
||||
for i in [0...sel.rangeCount]
|
||||
try
|
||||
range = sel.getRangeAt i
|
||||
# Trim range to be fully inside post
|
||||
if range.compareBoundaryPoints(Range.START_TO_START, postRange) < 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user