JSPM

joontop-editor

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q30364F
  • License ISC

Hash & Mention Editor

Package Exports

  • joontop-editor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (joontop-editor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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