Skip to content
forked from sujeet/libcursor

A JavaScript library for manipulating cursor inside textareas and contenteditable html elements.

License

Notifications You must be signed in to change notification settings

jamienk/libcursor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

libcursor

libcursor is a JavaScript library for manipulating cursor inside textareas and contenteditable html elements.

Using libcursor

Include the library:
<script 
   type='text/javascript' 
   src='//sujeetgholap.github.io/libcursor/libcursor.js'>
</script>
Here is a sample piece of code:
/* *
 * Write "Hello world!" with cursor 
 * ending up just after the 'o' in 'Hello' 
 */
cursor = Cursor.new ();
cursor.insert ("world!")
      .moveBackward (6)
      .insert ("Hello")
      .insertAfter (" ");

For API documentation, visit [github pages for libcursor] (http://sujeetgholap.github.io/libcursor/symbols/Cursor.html "API documentation").

About

A JavaScript library for manipulating cursor inside textareas and contenteditable html elements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%