New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

editorjs-text-alignment-blocktune

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editorjs-text-alignment-blocktune

text alignment block tune tool for Editor.js

1.0.3
latest
Source
npm
Version published
Weekly downloads
5.3K
-7.89%
Maintainers
1
Weekly downloads
 
Created
Source

Text Alignment tune tool for Editor.js

You can add text alignment to any block.

image

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-blocktune

Include module at your application

const AlignmentTuneTool = require('editorjs-text-alignment-blocktune');

Download to your project's source dir

  • Upload folder dist from repository
  • Add dist/bundle.js file 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

FieldTypeDescription
defaultstring"left"/"center"/"right", If not set, it will be "left".
blocksobjectDefault alignment can be set for each block

Keywords

codex editor

FAQs

Package last updated on 12 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts