开发者社区> 镜像站> NPM> component-inject-at-cursor
component-inject-at-cursor
inject a string or dom node at the cursor
Last updated 7 years ago by tootallnate .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install component-inject-at-cursor 
SYNC missed versions from official npm registry.

inject-at-cursor

inject a string or dom node at the cursor

Installation

Install with component(1):

$ 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:

npm install component-test
make test

License

MIT

Current Tags

  • 0.0.5                                ...           latest (7 years ago)

1 Versions

  • 0.0.5                                ...           7 years ago