JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 220254
  • Score
    100M100P100Q156887F
  • License ISC

Collection of utilities for DraftJS

Package Exports

  • draft-js-utils
  • draft-js-utils/lib/getEntityRanges

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (draft-js-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Collection of utilities for DraftJS

This is a set of utilities originally built for React-RTE, a rich text editor built on the awesome DraftJS.

Development

This project uses Flow for static type checking. The type annotations are optional, but preferred. Each file can opt-in to using Flow by adding @flow to the docblock or put this as the first line: // @flow.

Flow typechecks will be run as part of the normal tests npm run test but can also be run separately using npm run typecheck.