Package Exports
- editorjs-text-alignment-blocktune
- editorjs-text-alignment-blocktune/dist/bundle.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (editorjs-text-alignment-blocktune) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Text Alignment tune tool for Editor.js
You can add text alignment to any block.

If you can help, please push the Star button :)
required
- editor.js v2.22.3 ↑
Installation
Install via NPM
Get the package
npm i --save editorjs-text-alignment-blocktuneInclude module at your application
const AlignmentTuneTool = require('editorjs-text-alignment-blocktune');Download to your project's source dir
- Upload folder
distfrom repository - Add
dist/bundle.jsfile to your page.
Load from CDN
https://cdn.jsdelivr.net/npm/editorjs-text-alignment-blocktune@latest
usage
and look editor.js document
tool:{
list: {
class: List,
inlineToolbar: true,
},
header: {
class: Header,
tunes: ['anyTuneName'],
},
paragraph: {
class: Paragraph,
inlineToolbar: false,
tunes: ['anyTuneName'],
},
anyTuneName: {
class:AlignmentTuneTool,
config:{
default: "right",
blocks: {
header: 'center',
list: 'right'
}
},
}
}Config Params
| Field | Type | Description |
|---|---|---|
| default | string |
"left"/"center"/"right", If not set, it will be "left". |
| blocks | object |
Default alignment can be set for each block |