UNPKG

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
# What is this? A text editor with very few functions such as bold, italic or underline. ![Screenshot](https://cloud.vitel.at/smallest-text-editor.png) # Installation `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 #smalles-text-editor { height: 400px; width: 400px; ... } ``` # Example https://jsfiddle.net/svitel11/ko2pnzjs/123/