@ludekarts/miniedit
v0.1.4
Published
Minimalistic rich text editor based on Markdown
Readme
MiniEdit
Minimalistic, Markdown-based rich text editor. To do description . . .
Install
npm i @ludekarts/minieditUsage
With bundler:
import MiniEdit from "@ludekarts/miniedit";
const editor = MiniEdit("#container");With browser:
. . .MiniEdit API
setText(markdown)
Sets full text in the editor e.g:
editor.setText(`
# Hello world
This is some paragraph of text. This one is **bold**.
`);insertText(markdown)
Insert markdown in place of the caret.
editor.insertText(``);getText()
Returns whole markdown markup from the document.
editor.getText();