@juratbek/editorjs-code

1.1.8 • Public • Published

Code editor for Editor.js

Code editor for Editor.js Allows you to write codes

Installation

npm i @juratbek/editorjs-code
yarn add @juratbek/editorjs-code

Usage

Add the Code tool to the tools property of the Editor.js initial config.

import EditorJs from "@editorjs/editorjs";
import Code from "@juratbek/editorjs-code";

const editor = EditorJs({
  // ...
  tools: {
    code: Code,
  },
});

Config Params

Field Type Description Default value
defaultLanguage string default coding language javascript

Output data

Field Type Description
code string written code
language string coding language

Readme

Keywords

Package Sidebar

Install

npm i @juratbek/editorjs-code

Weekly Downloads

3

Version

1.1.8

License

ISC

Unpacked Size

1.07 MB

Total Files

6

Last publish

Collaborators

  • upperuz