Skip to content

maziyank/editorjs-change-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change Case Inline Tool

Change Case Tool for the Editor.js.

Installation

Install via NPM

Get the package

npm i --save-dev editorjs-change-case

OR

yarn add editorjs-change-case

Include module at your application

import ChangeCase from 'editorjs-change-case';

Usage

Add a new Tool to the tools property of the Editor.js initial config. The locale parameter used to convert according to locale-specific case mappings.

var editor = EditorJS({  
  tools: {
    changeCase: {
      class: ChangeCase,
      config: {
        showLocaleOption: true, // enable locale case options
        locale: 'tr' // or ['tr', 'TR', 'tr-TR']
      }
    }
  }
});

Releases

No releases published

Packages

No packages published