Skip to content

Releases: springload/draftail

v0.7.0

29 May 20:20
Compare
Choose a tag to compare

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.

v0.6.0

26 Apr 22:00
Compare
Choose a tag to compare

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.

v0.5.0

17 Dec 09:02
Compare
Choose a tag to compare

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 [email protected] 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.

v0.4.1

17 Dec 09:01
Compare
Choose a tag to compare

Fixed

  • Fix image block not unlocking editor on cancel.

v0.4.0

17 Dec 09:01
Compare
Choose a tag to compare

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.

v0.3.3

17 Dec 09:01
Compare
Choose a tag to compare

Added

  • Allow customisation of block style function & block render map.

v0.3.2

17 Dec 09:00
Compare
Choose a tag to compare

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.

v0.3.1

17 Dec 08:59
Compare
Choose a tag to compare

Fixed

  • Buttons do not trigger a form submit

v0.3.0

17 Dec 08:59
Compare
Choose a tag to compare

This release contains breaking changes.

Added

  • Keyboard shortcuts documentation

Changed

  • Expose onSave hook instead of auto field saving (#23)

Fixed

v0.2.0

17 Dec 08:58
Compare
Choose a tag to compare

Changed

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