https://github.com/softkitit/editorjs-inline-font-size
https://github.com/softkitit/editorjs-inline-font-size
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/softkitit/editorjs-inline-font-size
- Owner: softkitit
- License: mit
- Created: 2024-03-04T23:08:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T15:15:10.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T19:16:13.823Z (12 months ago)
- Language: JavaScript
- Size: 5.49 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

# Font Size tool
Font size inline tool for the [Editor.js](https://editorjs.io).
## Installation
### Install via NPM or Yarn
Get the package
```shell
yarn add editorjs-inline-font-size-tool
```
Include module in your application
```javascript
const FontSize = require('editorjs-inline-font-size-tool');
```
## Usage
Add a new Tool to the `tools` property of the Editor.js initial config.
```javascript
var editor = EditorJS({
...
tools: {
...
fontSize: FontSize,
config: {
fontSizeList: [
{ label: '10', value: '1', class: 'fs-1' },
{ label: '13', value: '2', class: 'fs-2' },
],
},
}
...
});
```