@highoutput/neyar
TypeScript icon, indicating that this package has built-in type declarations

0.1.57 • Public • Published

Getting started

We are aiming to create an customizable editor plugin (notion like usage) to integrate mainly in identifi or other projects; can also adapt to any new feature plugin product team may want to insert; to resolve formatting text concern and to ease building a document type of page. Build around editor-js

Commands

To install package, use:

npm i @highoutput/neyar

Usage

<div id="editor"></div>
// typescript usage
import {
  EditorJS,
  NeyarText,

  /** Plugins */
  Undo,
  DragDrop,
} from '@hightoutput/neyar';

const editor = new EditorJS({
  /**
   * Id of Element that should contain the Editor
   */
  holder: 'editor',
  tools: {
    neyarText: {
      class: NeyarText,
    },
  },
  defaultBlock: 'neyarText',
  /**
   * onReady callback
   */
  onReady: () => {
    new DragDrop(editor); // to enable drag and drop of blocks
    new Undo(editor); // to enable undo of blocks
  },
  /**
   * onChange callback
   */
  onChange: (api, event) => {
    editor.save().then(outputData => {
      console.log(outputData); // get serialize data
    });
  },
});

Plugin from Editor.js that we can use

// main import
import { EditorJS } from '@hightoutput/neyar';

// plugin from editor js

import {
  Paragraph, // default text block
  Header,
  Code,
  CheckList,
  Qoute,
  Delimiter,
  ToggleBlock,
  List,
  NestedList,
  ImageTool,
  SimpleImage,
  Link, // link with preview
  Attaches,
  Embed,
  Table,
  Raw,

  /** Plugins */
  Undo,
  DragDrop,

  /** Inline tool */
  Marker,
  InlineCode,
  LinkAutocomplete,
  Underline,

  /** Block tune tool */
  AlignmentTuneTool,
} from '@hightoutput/neyar';

Readme

Keywords

none

Package Sidebar

Install

npm i @highoutput/neyar

Weekly Downloads

0

Version

0.1.57

License

MIT

Unpacked Size

135 kB

Total Files

22

Last publish

Collaborators

  • ccpacillos
  • rrmadjos
  • glvnzn
  • highoutputventures
  • highoutputdev