Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
A couple of methods for inserting a text "at" or "around" selected text in textarea
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Here're couple of dummy methods for working mostly with textareas. They're formatted as jquery-plugin. $("textarea").insertAtCursor("some text"); // inserts "some text" at the cursor-specified position. $("textarea").insertAroundCursor("before text","after text"); // inserts "before text" before the selection and "after text" - after it.