OptionalisOptional predicate: returns true when the node with id is a text node.
When absent the action fires on any selected node (binding spec is the gate).
When present and returning false, the invocation is a no-op.
Begin editing the node with id. Activates the contenteditable overlay
managed by useTextEdit / useSceneTextEdit.
Optionalopts: { caret?: number | "all" }
Dep for
enterTextEditAction.Wrap the return value of
useTextEdit/useSceneTextEditto source this dep. TheisTextNodepredicate is optional — when absent the action fires unconditionally (the binding spec acts as the gate).Example