npm.io
1.0.1 • Published 5 years ago

@freedom-editor/svelte-code-block

Licence
MIT
Version
1.0.1
Deps
0
Size
92 kB
Vulns
0
Weekly
0

Freedom Editor Svelte Code Block

License Maintainability Known Vulnerabilities Codacy Badge

A code block built with Svelte for Freedom Editor.

Installation

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

Usage

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

import { Code } from '@freedom-editor/svelte-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.