draftjs-filters

v3.0.1
Filter Draft.js content to preserve only the formatting you allow
draft-js draftjs-utils editor wysiwyg rich text rte

start

react-scripts start

build

CI=true react-scripts build && rollup -c

test

CI=true react-scripts test --env=jsdom --coverage

test:watch

react-scripts test --env=jsdom

report:coverage

open coverage/lcov-report/index.html

report:package

npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' | tee build/package.txt && rm *.tgz

lint

prettier --check '**/?(.)*.{md,css,scss,js,ts,tsx,json,yaml,yml,html}'

format

prettier --write '**/?(.)*.{md,css,scss,js,ts,tsx,json,yaml,yml,html}'

test:ci

npm run lint -s && npm run build -s && npm run test -s -- --outputFile build/test-results.json --json

prepare

./.githooks/deploy.sh

prepublishOnly

npm run build -s
npm i draftjs-filters

Metadata

  • MIT
  • Whatever
  • Thibaud Colas
  • released 6/6/2022

Downloads