0.1.1 • Published 8 years ago

marked-input v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Marked Input

NPM Downloads

Make your input box markable. Mark the unexpected text in your input box.

Demo

Installation

npm i marked-input

Usage

<style>
#input > em {
  background: yellow;
  font-style: normal;
}
</style>
<div id="input"></div>
// Via NPM
const markedInput = require('marked-input');

// Via global, you'll get global variable `markedInput`

markedInput.init({
  el: '#input',
  splitText: 10,  // text longer than 10 chars will be marked
  onChange: text => {
    console.log(`Significant text: ${text}`);
  },
});

Snapshots

MarkedInput

0.1.1

8 years ago

0.1.0

8 years ago