项目作者: maziyank

项目描述 :
Change Case Inline Tool for the Editor.js.
高级语言: JavaScript
项目地址: git://github.com/maziyank/editorjs-change-case.git
创建时间: 2021-06-27T14:37:48Z
项目社区:https://github.com/maziyank/editorjs-change-case

开源协议:MIT License

下载


Change Case Inline Tool

Change Case Tool for the Editor.js.

Installation

Install via NPM

Get the package

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

OR

  1. yarn add editorjs-change-case

Include module at your application

  1. 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.

  1. var editor = EditorJS({
  2. tools: {
  3. changeCase: {
  4. class: ChangeCase,
  5. config: {
  6. showLocaleOption: true, // enable locale case options
  7. locale: 'tr' // or ['tr', 'TR', 'tr-TR']
  8. }
  9. }
  10. }
  11. });