@freedom-editor/vanilla-code-block

1.0.1 • Public • Published

Freedom Editor Vanilla Code Block

License Maintainability Known Vulnerabilities Codacy Badge

A code block written in vanilla Javascript for Freedom Editor.

Installation

npm i @freedom-editor/vanilla-code-block

Usage

Import this block to the script where you config Freedom Editor. Create a new instance.

import { Code } from '@freedom-editor/vanilla-code-block'

const codeBlock = new Code()

Register paragraph block in Freedom Editor instance

Register this block in options.registeredBlocks.

registeredBlocks: [
  codeBlock
]

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/vanilla-code-block

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

7.17 kB

Total Files

12

Last publish

Collaborators

  • johnwinston0410