1.0.19 • Published 2 years ago

@samandar.boymurodov/editorjs-codeflask v1.0.19

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

EditorJs - Codeflask

NPM

npm i @samandar.boymurodov/editorjs-codeflask

About

This is an EditorJs wrapper for CodeFlask - A lovely lightweight zero-dep code formatter

It was built to be an improvement on :

Demo

Demo

Built with:


Installation / use

import EditorJS from '@editorjs/editorjs';
import editorjsCodeflask from '@samandar.boymurodov/editorjs-codeflask';

var editor = EditorJS({
  // ...
  tools: {
    ...
    code: editorjsCodeflask
  },
});

Data Format

The data imported/exported from the block is as follows:

NameDescription
codeThe code that is displayed in the editor, with line breaks
language (optional)The programming language
showlinenumbers (optional)Will show/hide the line numbers (Default true) (WIP - Codeflask #132)

Since language and linenumbers are optional, existing code blocks can safley use this plugin

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago