draft-js v0.10.5 Release Notes

Release Date: 2018-01-20 // about 6 years ago
  • โž• Added

    • โž• Add support for ariaDescribedBy prop, for better a11y. (Suraj Karnati in
      a6af3e15)
    • โž• Add support for ariaLabelledBy prop, for better a11y. (@jackyho112
      in #1519)

    ๐Ÿ”„ Changed

    • Cause editor to break out of code block when user enters two blank lines. (Hanzhi Zhang
      in 548fd5d1)

    ๐Ÿ›  Fixed

    • Preserve list indentation when copying and pasting from one Draft.js editor
      into another. (@GordyD in #1605)
    • ๐Ÿ›  Fix cannot read property 'update' of undefined error that was thrown when
      typing same character into selection that starts with that character. (@existentialism in
      #1512)
    • ๐Ÿ›  Fix encodeRawBlocks to handle non-contiguous entities. Entities should
      always be contigious, and cover one sequential range of characters. However,
      in cases where entityState is corrupted to include non-contiguous entities,
      encodeRawBlocks would improperly process the entities in that case. (Frank
      Thompson in 0059dd46)
    • โšก๏ธ Updated CSS for DraftEditorPlaceholder to support multiline placeholder (Gaurav Vaish in
      c38b0285
    • ๐Ÿ›  Fix issue where typing at the end of a link caused the link to continue. (Ian
      Jones in
      d16833b3)
    • ๐Ÿ›  Fix regression of bug where clicking a link caused the focus to move but the
      selection state was not cleared, leading to a 'node not found' error.
      (@flarnie
      in 55316176)
    • Loosen Flow type definition for DraftBlockType to allow user-defined custom
      block types. (@mitermayer
      in #1480)