OptionalselectedOptionaltrackWhen true, the component re-renders on every position shift so calls
to getPos() stay current in render output.
Without this option, getPos() is still always current for imperative
use (click handlers, commands) — it only becomes stale when directly
rendered in JSX or used in reactive template expressions.
When
true, theselectedprop also becomestrueif aTextSelectionis fully inside the node's range (e.g. the cursor is placed within the node's content), not only when there is aNodeSelectionon the node. Defaults tofalseto preserve existing behavior.