joontop-editor

1.0.2 • Public • Published

joontop-editor

Usage

import Editor from 'joontop-editor';

const options = {
  hashClass: 'hash',
  mentionClass: 'mention',
  editorClass: '__editor',
  layerClass: '__layer',
  layerDataClass: '__layer_data',
  hashData: [
    'apartment',
    'aplication',
    'apple',
    'balloon',
    'baseball',
    'city',
    'cyber',
    'definition',
    'newsletter',
    'english',
    'language',
    'discussion',
    'edited',
    'apparently',
    'agree',
    'looking',
    'through',
    'google',
    'interesting',
    'superficial',
    'item',
    'good',
    'corresponds',
    'plural',
    'grammar',
    'everyone',
    'singular',
  ],
  mentionData: [
    'ajax',
    'bjay',
    'cyon',
    'damon',
    'eamon',
    'fashion',
    'ghost',
    'human',
    'intel',
    'july',
    'kill',
    'lime',
    'man',
    'none',
    'orange',
    'phone',
    'question',
    'ryan',
    'simon',
    'tube',
    'unit',
    'vacation',
    'wow',
    'xenocide',
    'yellow',
    'zion',
  ],
  target: document.querySelector('.editor'),
};
const editor = new Editor(options);
editor.start();

Sample URL

https://joontop.github.io/joontop-editor/sample/

License

MIT

Package Sidebar

Install

npm i joontop-editor

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

53.6 kB

Total Files

13

Last publish

Collaborators

  • joontop