How can I suppress the selection has been lost exception?
#4039
Unanswered
LvChengbin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I create a popup which has a
Remove Linkbutton whileonMouseOveron aLinkNode.Because the
LinkNodeis not in a selection range, so I wrote this code:After trigger the
TOGGLE_LINK_COMMANDcommand, I want that I can recover the previous selection beforenode.select( 0 ).Then, I change my code this way:
It works well if the previous selection doesn't contains the
LinkNode, other I get an error message:and it also block the
TOGGLE_LINK_COMMANDcommand.I want to know If I there is a convenient way to solve this? For example a way to do check before
$setSelectionor just ask theupdateEditorignore the error.Beta Was this translation helpful? Give feedback.
All reactions