Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/inject-at-cursor
inject a string or dom node at the cursor
https://github.com/component/inject-at-cursor
Last synced: 13 days ago
JSON representation
inject a string or dom node at the cursor
- Host: GitHub
- URL: https://github.com/component/inject-at-cursor
- Owner: component
- Created: 2014-01-15T12:58:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-01T23:14:18.000Z (over 10 years ago)
- Last Synced: 2024-12-11T09:52:09.409Z (18 days ago)
- Language: JavaScript
- Homepage:
- Size: 227 KB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# inject-at-cursor
inject a string or dom node at the cursor
## Installation
Install with [component(1)](http://component.io):
$ component install component/inject-at-cursor
## API
### inject(content)
Inject `content` at the cursor. `content` can either be a text string or some html. Returns the `content` node
## Test
Run tests using [component-test](http://github.com/matthewmueller/component-test):
npm install component-test
make test## License
MIT