plain-text-editor
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

plain-text-editor

A plain text editor (based on textarea)

install

npm install plain-text-editor #npm
yarn add plain-text-editor #yarn
pnpm add plain-text-editor #pnpm

usage

import Editor from 'plain-text-editor';

const editor = new Editor({
  input: document.getElementById('textarea'),
});

// Insert Bulletlist
editor.insertUl();

// Insert OrderedList
editor.insertOl();

// Destory(clear all events)
editor.destory();

options

interface Options {
  input: HTMLTextAreaElement;
  content?: string;
  point?: string;
}

Readme

Keywords

Package Sidebar

Install

npm i plain-text-editor

Weekly Downloads

10

Version

0.0.1

License

MIT

Unpacked Size

36.3 kB

Total Files

26

Last publish

Collaborators

  • hzpeng