0.3.2 • Published 1 year ago
@imshann/editor v0.3.2
introduction
a frontend editor
import
import Editor from "@imshann/editor";
usage
const editor = new Editor(document.querySelector("#editor"), {
// input
content: "Please enter some code",
// output
onChange(value) {},
});
onLineNumberChange()
new Editor(document.querySelector("#editor"), {
// It will be called when the line number is updated
onLineNumberChange(value) {},
});