@freedom-editor/block-inline-markup-controller

0.1.0 • Public • Published

Freedom Editor Block Inline Markup Controller

License Maintainability Known Vulnerabilities Codacy Badge

A controller for handling block inline markup for Freedom Editor.

Installation

npm i @freedom-editor/block-inline-markup-controller

Usage

Step 1: Import the controller

Import this controller to the script where you configurate Freedom Editor.

import {
  BlockInlineMarkup
} from '@freedom-editor/block-inline-markup-controller'

Step2: Hook the controller to blocks

Hook this controller to the Freedom Editor instance in FreedomEditorInstance.init(). The controller will then apply to all blocks.

const editor = new FreedomEditor({
  containerId: 'freedom-editor',
  //Options here...
  }
})

editor.init([
  //Hook controllers here
  new BlockInlineMarkup({

  })
])

You can also hook this controller to block instance. The controller will then apply to specific block only.

import { Paragraph } from '@freedom-editor/lighterhtml-paragraph-block'

const paragraphBlock = new Paragraph({
  controllers: [
    //Hook controllers here
    new BlockInlineMarkup({

    })
  ]
})

API Reference

TODO

License

This project is licensed under the MIT License - see the license for more details.

Package Sidebar

Install

npm i @freedom-editor/block-inline-markup-controller

Weekly Downloads

19

Version

0.1.0

License

MIT

Unpacked Size

6.7 kB

Total Files

11

Last publish

Collaborators

  • johnwinston0410