1.0.12 • Published 1 year ago

editorjs-text-alignment-tool v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm.io

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

Include module at your application

const TextAlignmentTool = require('editorjs-text-alignment-tool');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

https://cdn.jsdelivr.net/npm/editorjs-text-alignment-tool@latest

usage

and look editor.js document

tool:{
    list: {
      class: List,
      inlineToolbar: true,
    },
    header: {
      class: Header,
      tunes: ['textAlignment'],
    },
    paragraph: {
      class: Paragraph,
      inlineToolbar: false,
      tunes: ['textAlignment'],
    },
    textAlignment: {
      class:AlignmentTuneTool,
      config:{
        default: "right",
        blocks: {
          header: 'center',
          list: 'right'
        }
      },
    }
}

Config Params

FieldTypeDescription
defaultstring"left"/"center"/"right"/"justify", If not set, it will be "left".
blocksobjectDefault alignment can be set for each block
acornacorn-import-assertionsajvajv-keywordsansi-colorsansi-stylesbabel-loaderbabel-plugin-dynamic-import-nodebabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbig.jsbrowserslistbuffer-fromcall-bindcamelcasecaniuse-litechalkchrome-trace-eventclone-deepcolor-convertcolor-namecolorettecommandercommondirconvert-source-mapcore-js-compatcross-spawncss-loadercssescdebugdefine-propertieselectron-to-chromiumemojis-listenhanced-resolveenquirerenvinfoes-module-lexerescaladeescape-string-regexpeslint-scopeesrecurseestraverseesutilseventsexecafast-deep-equalfast-json-stable-stringifyfastest-levenshteinfind-cache-dirfind-upfunction-bindgensyncget-intrinsicget-streamglob-to-regexpglobalsgraceful-fshashas-flaghas-symbolshuman-signalsicss-utilsimport-localindexes-ofinterpretis-core-moduleis-plain-objectis-streamisexeisobjectjest-workerjs-tokensjsescjson-parse-even-better-errorsjson-schema-traversejson5kind-ofloader-runnerloader-utilslocate-pathlodashlodash.debouncelru-cachemake-dirmerge-streammime-dbmime-typesmimic-fnminimistmsnanoidneo-asyncnode-releasesnpm-run-pathobject-keysobject.assignonetimep-limitp-locatep-trypath-existspath-keypath-parsepicocolorspkg-dirpostcsspostcss-modules-extract-importspostcss-modules-local-by-defaultpostcss-modules-scopepostcss-modules-valuespostcss-selector-parserpostcss-value-parserpunycoderandombytesraw-loaderrechoirregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregexpu-coreregjsgenregjsparserresolveresolve-cwdresolve-fromsafe-bufferschema-utilssemverserialize-javascriptshallow-cloneshebang-commandshebang-regexsignal-exitsource-mapsource-map-jssource-map-supportstrip-final-newlinestyle-loadersupports-colortapableterserterser-webpack-pluginto-fast-propertiestslibunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptuniqupdate-browserslist-dburi-jsutil-deprecatev8-compile-cachewatchpackwebpackwebpack-cliwebpack-mergewebpack-sourceswhichwildcardyallist
1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago