component-inject-at-cursor

0.0.5 • Public • Published

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

/component-inject-at-cursor/

    Package Sidebar

    Install

    npm i component-inject-at-cursor

    Weekly Downloads

    6

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • defunctzombie
    • tootallnate
    • tjholowaychuk
    • rauchg
    • retrofox
    • coreh
    • forbeslindesay
    • kelonye
    • mattmueller
    • yields
    • anthonyshort
    • jongleberry
    • ianstormtaylor
    • cristiandouce
    • swatinem
    • stagas
    • amasad
    • juliangruber
    • calvinfo
    • dominicbarnes
    • timoxley
    • jonathanong
    • queckezz
    • clintwood
    • thehydroimpulse
    • stephenmathieson
    • trevorgerhardt