You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If deleteContent() is executed on a selection which is in the graveyard root it will fail. It's because startPos is created as a static position but since it is in the graveyard, it should be updated:
conststartPos=selRange.start;// ...writer.remove(selRange);// ...mergeBranches(writer,startPos,endPos);// <-- Incorrect `startPos` is used.
There are two possible solutions for this:
Make startPos a LivePosition.
Cancel deleteContent if selRange is in the graveyard.
We chose the second option because it is less prone to an error and generates no operations.
The text was updated successfully, but these errors were encountered:
If
deleteContent()
is executed on a selection which is in the graveyard root it will fail. It's becausestartPos
is created as a static position but since it is in the graveyard, it should be updated:There are two possible solutions for this:
startPos
aLivePosition
.deleteContent
ifselRange
is in the graveyard.We chose the second option because it is less prone to an error and generates no operations.
The text was updated successfully, but these errors were encountered: