smallest-text-editor
Version:
Javascript text editor that has only basic functions (bold, italic, underline and text color). It does not depend on other packages and takes up very little space.
31 lines (22 loc) • 573 B
Markdown
with very few functions such as bold, italic or underline.

`npm i smallest-text-editor`
Then...
...
```import SmallestTextEditor from './node_modules/smallest-text-editor'
const editor = new SmallestTextEditor('#id-of-your-div')
// get value
editor.getValue()
// clear text
editor.clear()
// you can style the editor as you wish
height: 400px;
width: 400px;
...
}
```
https://jsfiddle.net/svitel11/ko2pnzjs/123/
A text editor