New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

draftail

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftail - npm Package Versions

1
45

0.4.0

Diff

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.
thibaudcolas
published 0.3.2 •

Changelog

Source

[v0.3.2]

Added

  • Pressing return on an empty list item should un-indent it until it is not nested, and then remove it.
  • Pressing return at the end of a block should create an empty unstyled block.
thibaudcolas
published 0.3.1 •

Changelog

Source

[v0.3.1]

Fixed

  • Buttons do not trigger a form submit
thibaudcolas
published 0.3.0 •

Changelog

Source

[v0.3.0]

This release contains breaking changes.

Added

  • Keyboard shortcuts documentation

Changed

  • Expose onSave hook instead of auto field saving (https://github.com/springload/draftail/issues/23)

Fixed

  • https://github.com/springload/draftail/issues/2
  • https://github.com/springload/draftail/issues/3
  • https://github.com/springload/draftail/issues/28
thibaudcolas
published 0.2.0 •

Changelog

Source

[v0.2.0]

Changed

  • Reworking most of the editor codebase to make it more maintainable.
  • Configurable block types and inline styles.
thibaudcolas
published 0.1.0 •

Changelog

Source

[v0.1.0]

First usable release!


Template from http://keepachangelog.com/

1
45
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