0.1.3 • Published 4 months ago

@chialab/typos v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Get the library

NPM

Install via NPM or Yarn:

npm i @chialab/typos
yarn add @chialab/typos

CDN

import { fixQuotes } from 'https://unpkg.com/@chialab/typos?module';

Usage

TinyMCE

Use Typos as plugin for TinyMCE:

import tinymce from 'tinymce/tinymce';
import { tinymcePlugin } from '@chialab/typos';

tinymcePlugin(tinymce);

tinymce.init({
  selector: 'textarea',
  plugins: 'typos',
  toolbar: 'fixQuotes',
});

Development

Install the dependencies

yarn

Run the dev script to debug the library:

yarn dev

Run the build script for distribution:

yarn build

This will generate the ESM bundle in the dist folder and declaration files in the types folder.


License

Typos is released under the MIT license.