General XMetaL Discussion
MrPaul March 18, 2013 at 8:31 pm
Move cursor inside node from selectionMarch 18, 2013 at 8:31 pmParticipants 1Replies 2Last Activity 9 years, 6 months ago
Consider the following XML:
If the selection is currently on the entirety of element:
How do I move the cursor directly after the
Note: Selection.ContainerNode is
. I want the ContainerNode to be . I am using XMAX v6.Derek Read March 19, 2013 at 3:48 am
Reply to: Move cursor inside node from selectionMarch 19, 2013 at 3:48 am
There would be quite a few ways to do this. Here are a couple of the simplest. You might need additional code if your selection is not always guaranteed to be as you have described it.
Assuming you meant “directly after the
tag” (not “element”, which would put it after thetag) this should do it:
This would result in the same selection:
As would this:
And so would this:
- You must be logged in to reply to this topic.