1.0.0 • Published 2 years ago

@ct-note/checklist v1.0.0

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

npm.io

Checklist Tool for Editor.js

This Tool for the Editor.js allows you to add checklists to your texts.

npm.io

Installation

Install via NPM

Get the package

npm i --save-dev @editorjs/checklist

Include module at your application

const Checklist = require('@editorjs/checklist');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

You can load specific version of package from jsDelivr CDN.

https://cdn.jsdelivr.net/npm/@editorjs/checklist@latest

Then require this script on page with Editor.js.

<script src="..."></script>

Usage

Add a new Tool to the tools property of the Editor.js initial config.

var editor = EditorJS({
  ...
  
  tools: {
    ...
    checklist: {
      class: Checklist,
      inlineToolbar: true,
    },
  }
  
  ...
});

Config Params

This Tool has no config params

Output data

FieldTypeDescription
itemsobject[]array of checklist's items
{
    "type" : "checklist",
    "data" : {
        "items" : [
            {
              "text" : "This is a block-styled editor",
              "checked" : true
            },
            {
              "text" : "Clean output data",
              "checked" : false
            },
            {
              "text" : "Simple and powerful API",
              "checked" : true
            }
        ]
    }
}
ajv-errorsajvacornajv-keywordsanymatchansi-stylesansi-regexargparsearr-diffaprobaarr-unionarr-flattenarray-uniqueasn1.jsassertassign-symbolsatobbabel-code-frameasync-eachbalanced-matchbabel-plugin-dynamic-import-nodebasebig.jsbase64-jsbinary-extensionsbluebirdbrace-expansionbracesbrorandbn.jsbrowserify-aesbrowserify-rsabrowserify-desbrowserify-cipherbrowserify-signbrowserify-zlibbrowserslistbufferbuffer-frombuffer-xorbuiltin-status-codescacachecaller-callsitecaller-pathcallsitescache-basecaniuse-litecall-bindcamelcasechalkchokidarchrome-trace-eventchownrcipher-basecliuiclass-utilscollection-visitcolor-convertcolorettecolor-namecommanderconcat-mapcommondirconcat-streamconsole-browserifycomponent-emitterconstants-browserifycopy-concurrentlyconvert-source-mapcopy-descriptorcore-js-compatcosmiconfigcore-util-iscreate-ecdhcreate-hashcreate-hmaccross-spawncrypto-browserifycss-selector-tokenizercyclistcssescdebugdecamelizedecode-uri-componentdefine-propertydefine-propertiesdes.jsdetect-fileduplexifydomain-browserdiffie-hellmanelectron-to-chromiumellipticemoji-regexend-of-streamemojis-listenhanced-resolveerrnoescaladeerror-exescape-string-regexpeslint-scopeesrecurseesprimaestraverseesutilseventsevp_bytestokeyexpand-tildeexpand-bracketsextendfast-deep-equalextend-shallowextglobfastparsefiggy-puddingfast-json-stable-stringifyfill-rangefind-cache-dirfind-upfindup-syncfs-write-stream-atomicfragment-cachefrom2function-bindfs.realpathfor-inflush-write-streamgensyncget-caller-fileget-intrinsicglobget-valueglob-parentglobal-modulesglobal-prefixgraceful-fshasglobalshas-ansihas-flaghas-symbolshas-valueshash.jshmac-drbghash-basehttps-browserifyicss-replace-symbolshas-valuehomedir-polyfillicss-utilsieee754iferrimport-freshimport-cwdimport-fromimport-localimurmurhashindexes-ofinfer-ownerinflightinheritsinterpretiniis-arrayishis-accessor-descriptoris-bufferis-core-moduleis-binary-pathis-descriptoris-data-descriptoris-directoryis-extendableis-extglobis-globis-fullwidth-code-pointis-numberis-plain-objectis-windowsis-wslisarrayisexeisobjectjs-tokensjs-yamljsescjson-parse-better-errorsjson-schema-traversejson5kind-ofloader-runnerloader-utilslocate-pathlodashmake-dirmap-cachelru-cachemap-visitmd5.jsmemory-fsmicromatchmiller-rabinminimalistic-assertminimalistic-crypto-utilsminimatchmississippiminimistmixin-deepmkdirpmove-concurrentlymsnanomatchneo-asyncnice-trynode-libs-browsernormalize-pathnode-releasesobject-assignobject-copyobject-keysobject.assignobject-visitobject.pickoncep-limitp-locateos-browserifyp-trypakoparse-asn1parallel-transformparse-jsonparse-passwdpascalcasepath-browserifypath-dirnamepath-existspath-is-absolutepath-parsepath-keypbkdf2picomatchpifyposix-character-classespkg-dirpostcsspostcss-load-configpostcss-modules-extract-importspostcss-modules-local-by-defaultpostcss-modules-scopepostcss-modules-valuespostcss-resolve-nested-selectorpostcss-selector-parserpostcss-value-parserprocessprocess-nextick-argspromise-inflightprrpublic-encryptpumppunycodepumpifyquerystringrandombytesquerystring-es3randomfillreadable-streamreaddirpregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregex-notregexpu-coreregjsgenregjsparserrepeat-stringrequire-directoryrequire-main-filenameresolveresolve-cwdrepeat-elementresolve-dirresolve-fromremove-trailing-separatorresolve-urlretrimrafripemd160run-queuesafe-buffersafe-regexsafer-bufferschema-utilssemverserialize-javascriptset-blockingset-valuesetimmediatesha.jsshebang-commandshebang-regexsnapdragonsnapdragon-nodesnapdragon-utilsource-list-mapsource-mapsource-map-resolvesource-map-supportsource-map-urlsplit-stringsprintf-jsssristatic-extendstream-browserifystream-eachstream-httpstream-shiftstring-widthstring_decoderstrip-ansisupports-colortapableterserterser-webpack-pluginthrough2timers-browserifyto-arraybufferto-fast-propertiesto-object-pathto-regexto-regex-rangetslibtty-browserifytypedarrayunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunion-valueunicode-property-aliases-ecmascriptunique-filenameuniqunique-slugunset-valueupathuri-jsurixurluseutilutil-deprecatev8-compile-cachevm-browserifywatchpackwhich-moduleworker-farmwrap-ansiwhichwrappyxtendy18nyallistyargs-parserwebpack-sourcesyargswatchpack-chokidar2
1.0.0

2 years ago