Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

draftail

Package Overview
Dependencies
Maintainers
6
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftail - npm Package Versions

1
6

1.4.1

Diff

Changelog

Source

[v1.4.1]

Documentation: draftail.org/docs/getting-started

Fixed

  • Fix plugin keyBindingFns not being called. #246, #445
thibaudcolas
published 1.4.0 •

Changelog

Source

[v1.4.0]

Documentation: draftail.org/docs/getting-started

Added

  • Make it possible to hide buttons with default labels by setting their label to null. #442

Changed

  • Improve the editor props’ JSDoc annotations. #441

Fixed

  • Fix empty buttons appearing when providing custom formats without a defined label or icon. #442
  • Clear save timeout handler when unmounting the editor. #208, #443
thibaudcolas
published 1.3.0 •

Changelog

Source

[v1.3.0]

Documentation: draftail.org/docs/1.3.0/getting-started

🎉 blog post for this release: Draftail v1.3.0: community improvements, beyond Wagtail.

Added

Fixed

  • Fix undo/redo button icons not being customisable (#195, #196).
thibaudcolas
published 1.2.1 •

Changelog

Source

[v1.2.1]

Documentation: draftail.org/docs/1.2.1/getting-started

Fixed

  • Fix regression introduced in v1.2.0 where Draft.js-defined keyboard shortcuts were available unconditionally (#189).
thibaudcolas
published 1.2.0 •

Changelog

Source

[v1.2.0]

Documentation: draftail.org/docs/1.2.0/getting-started

🎉 blog post for this release: Draftail v1.2.0: supporting modern experiences.

Added

This new API makes it possible to build much more advanced extensions to the editor than ever before, such as autocompletes, linkify, custom blocks, custom toolbars, and more. Read the release blog post to learn more about the motivation for those new APIs.

  • Add data reset parameter to DraftUtils.resetBlockWithType().
  • Add ability to disable or customise the editor toolbar with topToolbar.
  • Add ability to add a toolbar below the editor with bottomToolbar.
  • Add support for Markdown shortcuts for inline styles, e.g. ** for bold, _ for italic, etc (#134, #187). View the full list of keyboard shortcuts.

Changed

  • Enable list continuation on Enter for custom *-list-item blocks. All that’s required is for the block type to end with -list-item.
thibaudcolas
published 1.1.0 •

Changelog

Source

[v1.1.0]

Documentation: draftail.org/docs/1.1.0/getting-started

🎉 blog post for this release: Draftail v1.1.0: a quality of life release.

Added

Fixed

  • Stop unnecessarily calling onSave in the editor’s onBlur (#173).
  • Prevent crash when filtering pasted content whose last block is to be removed (e.g. unsupported image) (#179).
  • Prevent crash in DraftUtils.getEntitySelection, when the provided entity key isn't valid (undefined, missing) (#168).
  • Fix entity removal and editing not doing anything when the selection is backwards (right to left) (#168).

Changed

Removed

thibaudcolas
published 1.0.0 •

Changelog

Source

[v1.0.0]

Documentation: draftail.org/docs/1.0.0/getting-started

This release is functionally identical to the last one, v0.17.2.

The project has reached a high-enough level of stability to be used in production, and breaking changes will now be reflected via major version changes.

thibaudcolas
published 0.17.2 •

Changelog

Source

[v0.17.2]

Changed

  • Update to draftjs-filters@1.0.0. This does not include any functional changes, but will cause a duplicated dependency for projects having both draftail and draftjs-filters as deps if they don’t also update draftjs-filters.
  • Add Draft.js copy-paste handling overrides from draftjs-conductor. This makes Draftail always preserve the full content as-is when copy-pasting between editors. Fix #147 (thibaudcolas/draftjs-conductor#2).
thibaudcolas
published 0.17.1 •

Changelog

Source

[v0.17.1]

Changed

  • Unsupported actions causing an atomic block to be without entity now soft-fail with an un-editable atomic block instead of hard-fail wagtail/wagtail#4370.

Fixed

thibaudcolas
published 0.17.0 •

Changelog

Source

[v0.17.0]

Added

  • Add basic API for arbitrary controls in the toolbar.
  • Expose ToolbarButton component in the API.
  • Add ability to set ariaDescribedBy prop of Draft.js.

Changed

  • Replace block entities by a paragraph when using onRemoveEntity.
  • Replace ListNesting implementation with the one from draftjs-conductor.

Fixed

  • Fix copy-paste filter running more often than necessary.
  • Use darker placeholder text color to pass WCAG2.0 AAA level contrast ratio. Overridable via $draftail-placeholder-text.
  • Fix HR block spacing at the top of the editor.

Removed

  • Remove DraftUtils.isSelectedBlockType().
  • Remove DraftUtils.hasCurrentInlineStyle().
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc