This library can help you include various text editor functions into your web application. This module is a NodeJS module and is hosted through npm registry.
- If you haven't already, install Node.js first. This automatically will get
npm
(aka package manager for NodeJS) on your computer. - Create a
package.json
file by runningnpm init
in the Terminal. - Then run
npm i charta
. - Voila! Charta.js package is installed. See the instructions below on how to use it.
- Add the code below at the top of your JS file where you'd like to use this package.
const myFunctions = require("index.js")
const newNote = myFunctions.newNote;
const deleteNote = myFunctions.deleteNote;
const changeNote = myFunctions.changeNote;
const saveNote = myFunctions.saveNote;
const checkEmpty = myFunctions.checkEmpty;
- Now the above functions
newNote
,deleteNote
, and others are ready for your usage!