Skip to content

canburaks/text-align-editorjs

Repository files navigation

Inline text-align plugin for editorjs.

A text-alignment plugin for the EditorJS. Text alignment with a button that tries all options (left, center, right, justify) in turn respectively. This is my first contribution to public. The plugin works on paragraph blocks. The selection of styled elements within the paragraph also changes the alignment of the parent paragraph. (Previously it didn't work as expected)

text-align plugin styled elements

Installation

yarn add @canburaks/text-align-editorjs

or

<script src="https://cdn.jsdelivr.net/npm/@canburaks/text-align-editorjs@1.1.0/dist/text-align.umd.min.js"></script>

Usage

import TextAlign from "@canburaks/text-align-editorjs"

const editor = new EditorJS({ 
  	holder: 'editorjs', 
	tools: { 
        textAlign:TextAlign
    },
})

License

MIT.

About

Inline text-align plugin for editorjs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published