1.0.0 • Published 2 years ago

@ct-note/marker v1.0.0

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

npm.io

Marker Tool

Marker Tool for highlighting text-fragments for the Editor.js.

npm.io

Installation

Install via NPM

Get the package

npm i --save-dev @editorjs/marker

Include module at your application

const Marker = require('@editorjs/marker');

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/marker@latest

Require this script on a 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: {
    ...
    Marker: {
      class: Marker,
      shortcut: 'CMD+SHIFT+M',
    }
  },
  
  ...
});

Config Params

This Tool has no config params

Output data

Marked text will be wrapped with a mark tag with an cdx-marker class.

{
    "type" : "text",
    "data" : {
        "text" : "Create a directory for your module, enter it and run <mark class=\"cdx-marker\">npm init</mark> command."
    }
}
acorn-dynamic-importajvacornansi-regexajv-errorsajv-keywordsansi-stylesanymatchaprobaarr-diffarr-flattenarr-unionarray-uniqueasn1.jsasync-eachassign-symbolsassertatobbabel-code-framebase64-jsbalanced-matchbasebinary-extensionsbig.jsbn.jsbluebirdbracesbrorandbrace-expansionbrowserify-aesbrowserify-desbrowserify-cipherbrowserify-signbrowserify-rsabrowserify-zlibbrowserslistbuffercacachebuffer-xorbuffer-fromcache-basecamelcasebuiltin-status-codescaniuse-litechalkchokidarchownrchrome-trace-eventcipher-baseclass-utilscode-point-atcliuicolor-convertcommandercollection-visitcolor-namecommondircolorettecomponent-emitterconcat-mapconcat-streamconsole-browserifyconvert-source-mapconstants-browserifycopy-concurrentlycopy-descriptorcore-util-iscreate-ecdhcreate-hashcreate-hmaccross-spawncss-selector-tokenizercrypto-browserifycssesccyclistdate-nowdecamelizedebugdefine-propertiesdecode-uri-componentdes.jsdefine-propertydiffie-hellmandetect-filedomain-browserduplexifyelectron-to-chromiumellipticemojis-listend-of-streamenhanced-resolvees-abstractescaladeerrnoes-to-primitiveescape-string-regexpeslint-scopeesrecurseestraverseesutilsevp_bytestokeyeventsexecaexpand-bracketsexpand-tildeextend-shallowextglobfast-deep-equalfastparsefast-json-stable-stringifyfiggy-puddingfill-rangefind-cache-dirfind-upfindup-syncflush-write-streamfor-infs-write-stream-atomicfragment-cachefrom2fs.realpathget-caller-filefunction-bindget-streamglob-parentget-valueglobglobal-modulesglobal-prefixgraceful-fsglobalshashas-ansihas-flaghas-symbolshas-valuehash-basehas-valueshash.jshmac-drbghomedir-polyfillhttps-browserifyicss-utilsicss-replace-symbolsieee754iferrindexofimport-localimurmurhashinflightiniinheritsinterpretinvariantis-binary-pathinvert-kvis-accessor-descriptoris-bufferis-callableis-data-descriptoris-date-objectis-descriptoris-extendableis-extglobis-fullwidth-code-pointis-globis-numberis-plain-objectis-regexis-streamis-symbolis-windowsisarrayisexejs-levenshteinjs-tokensisobjectjsescjson5json-parse-better-errorsjson-schema-traversekind-oflcidloader-utilsloader-runnerlocate-pathloose-envifylodashlru-cachemamacromake-dirmap-age-cleanermd5.jsmap-cachemap-visitmemmiller-rabinmemory-fsmicromatchminimalistic-crypto-utilsminimalistic-assertmimic-fnminimatchminimistmississippimove-concurrentlymixin-deepmkdirpmsnanomatchnice-tryneo-asyncnormalize-pathnode-libs-browsernode-releasesnpm-run-pathobject-copynumber-is-nanobject-keysobject.getownpropertydescriptorsobject.pickonceobject-visitos-browserifyos-localep-deferp-finallyp-limitp-is-promisep-locatep-trypakoparallel-transformparse-asn1parse-passwdpascalcasepath-browserifypath-dirnamepath-existspath-parsepath-is-absolutepath-keypbkdf2pifypkg-dirposix-character-classespostcsspostcss-modules-extract-importspostcss-modules-local-by-defaultpostcss-modules-scopepostcss-modules-valuespostcss-value-parserprivateprocessprocess-nextick-argspromise-inflightprrpublic-encryptpumpquerystringpumpifypunycodequerystring-es3randombytesrandomfillreaddirpregenerator-transformreadable-streamregenerateregex-notregenerate-unicode-propertiesregexp-treeregexpu-coreregjsgenregjsparserremove-trailing-separatorrequire-directoryrepeat-stringrepeat-elementrequire-main-filenameresolveresolve-cwdresolve-urlresolve-fromresolve-dirretripemd160run-queuerimrafsafe-buffersafe-regexsemverschema-utilsserialize-javascriptsetimmediateset-blockingsha.jsshebang-commandshebang-regexsignal-exitsnapdragonsnapdragon-nodesnapdragon-utilset-valuesource-map-supportsource-list-mapsource-map-resolvesource-mapsource-map-urlsplit-stringssristream-browserifystatic-extendstream-eachstream-httpstream-shiftstring_decoderstrip-ansistring-widthstrip-eofsupports-colortapableterserterser-webpack-pluginthrough2timers-browserifyto-arraybufferto-object-pathto-fast-propertiesto-regextslibto-regex-rangetrim-righttty-browserifyunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascripttypedarrayunicode-property-aliases-ecmascriptunion-valueunique-filenameunset-valueunique-slugupathuri-jsurixurluseutilutil-deprecateutil.promisifyv8-compile-cachevm-browserifywatchpackwebpack-sourceswhichwhich-moduleworker-farmwrappywrap-ansiy18nyallistxtendyargsyargs-parser
1.0.0

2 years ago