Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Releases: facebookarchive/draft-js

v0.6.0

27 Apr 19:52
Compare
Choose a tag to compare

Added

  • ContentState.getFirstBlock() convenience method

Changed

  • return key handling now goes through command flow to enable easier
    custom 'split-block' handling.
  • convertFromRaw now returns a ContentState object instead of an
    Array<ContentBlock>

v0.5.0

12 Apr 17:47
Compare
Choose a tag to compare

Fixed

  • option+spacebar no longer incorrectly scrolls browser in Chrome OSX
  • Cursor behavior when adding soft newlines

Added

  • AtomicBlockUtils, a utility module to simplify adding atomic blocks to
    an EditorState

Changed

  • The media block type is now atomic, to better represent that this type
    is not just intended for photos and videos

v0.4.0

06 Apr 23:19
Compare
Choose a tag to compare

Fixed

  • Avoid clearing inline style override when setting block type or depth

Added

  • editable field for custom block component configuration
  • Default key binding support for Ctrl+M (split-block)

Changed

  • Always wrap custom block components, based on block type
    • Includes data-editor, data-offset-key, data-block in block props
  • Replace onPasteRawText prop with handlePastedText

v0.3.0

23 Mar 01:02
Compare
Choose a tag to compare

Fixed

  • Properly extract custom inline styles for convertToRaw
  • Fix internal paste behavior to better handle copied custom blocks

Added

  • Export getVisibleSelectionRect
  • Export convertFromHTML
  • Export DraftEditorBlock

v0.2.1

09 Mar 20:41
Compare
Choose a tag to compare

Added

  • React 15 RC as peer/dev dependency, provide suppressContentEditableWarning

v0.2.0

09 Mar 19:40
Compare
Choose a tag to compare

Added

  • Move white-space: pre-wrap into inline style to resolve insertion issues
  • handleDrop prop method for Editor to allow manual drop management
  • decoratedText prop for decorator components
  • getVisibleSelectionRect, to provide Rect for DOM selection
  • Export KeyBindingUtil and getDefaultKeyBinding

Fixed

  • Triple-clicks followed by block type changes now only affect first block
  • DraftEditorLeaf now re-renders correctly when its styles change
  • Backspace behavior within empty code blocks