1.1.1 • Published 4 months ago

@calumk/editorjs-codecup v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

EditorJs - CodeCup

NPM

npm i @calumk/editorjs-codecup

JS

https://cdn.jsdelivr.net/npm/@calumk/editorjs-codecup@latest

About

This is an EditorJs wrapper for CodeCup - 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 editorjsCodecup from '@calumk/editorjs-codecup';

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

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)
showCopyButton (optional)will show/hide the copy button (Defauly true)

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

1.1.1

4 months ago

1.1.0

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago