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 I set the ElementNode method inserNewAfter(selection, restoreSelection) second parameter restoreSelection to false will make the cursor preserve at the point before enter?
But the cursor always move to the first position of the new element refer to the source code of the Lexical core module
So the question is how can I set the cursor at any position after insert a new node, like move to the end of the new element, not the start point
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
If I set the ElementNode method
inserNewAfter(selection, restoreSelection)
second parameterrestoreSelection
tofalse
will make the cursor preserve at the point before enter?But the cursor always move to the first position of the new element refer to the source code of the Lexical core module
So the question is how can I set the cursor at any position after insert a new node, like move to the end of the new element, not the start point
Beta Was this translation helpful? Give feedback.
All reactions