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

draftail

Package Overview
Dependencies
Maintainers
4
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
46

0.8.0

Diff

Changelog

Source

[v0.8.0]

Added

  • Add name attribute to button elements to simplify targeting in browser automation tests.
  • Publish the package as an ES2015 module.

Changed

  • Upgrade draftjs-utils to latest (draftjs-utils).
  • Use references to window object instead of global.
  • Update dependencies to remove Immutable.js duplication
thibaudcolas
published 0.7.3 •

Changelog

Source

[v0.7.3]

Added

  • Expose reusable Portal component as part of the API.
thibaudcolas
published 0.7.2 •

Changelog

Source

[v0.7.2]

Changed

  • Only stick toolbar when editor is active.
  • Make editor slightly bigger.

Fixed

  • Fix editor class name concatenation.
thibaudcolas
published 0.7.1 •

Changelog

Source

[v0.7.1]

Fixed

  • Fix CSS import present in published library.
thibaudcolas
published 0.7.0 •

Changelog

Source

[v0.7.0]

Added

  • Make the editor toolbar sticky (requires a polyfill, documented in README).
  • Add support for placeholder attribute.

Changed

  • Improve "active block" rendering and disabled state.

Fixed

  • Fix missing vertical spacing between button rows.
  • Fix missing pointer cursor on tooltip button.

Removed

  • Remove Element.closest polyfill from main lib.
thibaudcolas
published 0.6.0 •

Changelog

Source

[v0.6.0]

Added

  • Add default strategy for entity types based on type.

Changed

  • Change empty RawDraftContentState in conversion API to be null.
  • Change entity type nomenclature to use source and decorator in place of control and component.
thibaudcolas
published 0.5.0 •

Changelog

Source

[v0.5.0]

Added

  • Implement list depth normalisation on copy/paste.
  • Add title attributes on buttons to display keyboard shortcuts. Fix #37.
  • Override default code-block element. Fix #41.

Changed

  • Update project to use draft-js@0.10 API
  • Move draftjs-utils peerDependency to be a dependency.
  • Move immutable peerDependency to be a dependency.
  • Copy/paste of rich text is now configurable via the stripPastedStyles option.
  • Copy/paste of rich text is now disabled by default. This will be enabled by default once it is better supported.
thibaudcolas
published 0.4.1 •

Changelog

Source

[v0.4.1]

Fixed

  • Fix image block not unlocking editor on cancel.
thibaudcolas
published 0.4.0 •

Changelog

Source

[v0.4.0]

Added

  • Make hr availability configurable with enableHorizontalRule. #25.
  • Add br support, availability configurable with enableLineBreak.
  • Prevent soft line breaks from keyboard shortcut if disabled.
  • Add editor CSS to published package. #17
  • Add common keyboard shortcuts (inspired by Google Docs, see documentation for the full list).
  • Add support for "autolist" behavior (lines starting with -, *, 1. are automatically converted to list items).

Changed

  • Max nested list level is now 1.
  • Max nested list level is now configurable via a prop.
  • Save interval is now configurable via a prop.
  • Change hr representation to use atomic block and entity instead of custom block type. #1
  • mediaControls, dialogControls and modelPickerOptions are now a single entityTypes array. #26
  • sources and decorators are now declared directly in the entityTypes array items.
  • INLINE_STYLES property is now inlineStyles.
  • BLOCK_TYPES property is now blockTypes.
  • Inline styles and block types now use the type attribute instead of style.
  • imageFormats are now assigned directly on the IMAGE entity type. #33
  • All options are now direct props of DraftailEditor instead of attributes of the options prop. #21

Fixed

  • Fix erratic behavior of list nesting changes with tab and shift+tab shortcuts. #34
  • Fix keyboard shortcuts giving access to unallowed formatting. #32
  • Fix tooltip not opening when clicking decorator icon. #5

Removed

  • draftail no longer depends on jQuery.
  • draftail no longer depends on the Wagtail font icon.
thibaudcolas
published 0.3.3 •

Changelog

Source

[v0.3.3]

Added

  • Allow customisation of block style function & block render map.
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