@freedom-editor/lighterhtml-heading-block
Version:
Heading block built with Lighterhtml for Freedom Editor
40 lines (24 loc) • 1.66 kB
Markdown
# Freedom Editor Lighterhtml Heading Block
[](https://img.shields.io/github/license/winston0410/freedom-editor) [](https://codeclimate.com/github/winston0410/freedom-editor-lighterhtml-heading-block/maintainability) [](https://snyk.io/test/github/winston0410/freedom-editor-lighterhtml-heading-block?targetFile=package.json) [](https://www.codacy.com/manual/winston0410/freedom-editor-lighterhtml-heading-block?utm_source=github.com&utm_medium=referral&utm_content=winston0410/freedom-editor-lighterhtml-heading-block&utm_campaign=Badge_Grade)
A heading block built with [Lighterhtml](https://github.com/WebReflection/lighterhtml) for Freedom Editor.
## Installation
```
npm i @freedom-editor/lighterhtml-heading-block
```
## Usage
Import this block to the script where you config Freedom Editor. Create a new instance.
```
import { Heading } from '@freedom-editor/lighterhtml-heading-block'
const headingBlock = new Heading()
```
### Register paragraph block in Freedom Editor instance
Register this block in `options.registeredBlocks`.
```
registeredBlocks: [
headingBlock
]
```
## API Reference
TODO
## License
This project is licensed under the MIT License - see the [license](https://github.com/winston0410/freedom-editor/LICENSE.md) for more details.