YUI Caret Plugin for Node
#1. Get selection indexes and content
Mouse select a portion of the input/textarea content bellow. (or place the caret somewhere)
#2. Get and Set the position of the caret
#3. Manipulating selected content
Select a portion of the textarea/input bellow than get or set a content.
#4. Simulating user typing
Put a content to be "typed" and press type to simulate a user typing.
You can change the caret position while the simulation is happening.