All Versions
29
Latest Version
Avg Release Cycle
72 days
Latest Release
1488 days ago

Changelog History
Page 2

  • v0.10.5 Changes

    January 20, 2018

    โž• 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)
  • v0.10.4 Changes

    October 24, 2017

    โž• Added

    • ๐Ÿ”ฆ Expose onRightArrow and onLeftArrow props to allow handling keyboard events when right or left arrow is pressed. (@eessex in #1384)
    • ๐Ÿ”ฆ Expose Draft.css as default CSS export in package.json for use by CSS preprocessors. (@darobin in #566)

    ๐Ÿ”„ Changed

    • ๐ŸŽ Change 'lookUpwardForInlineStyle' from O(n2) to O(n), improving performance. :) (@Lemmih in #1429)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix bug where editors inside draggable parent were broken for Safari. (@mattkrick in #1326)
    • Stop pulling in Enzyme as production dependency. D'oh. (@flarnie in #1415)
    • ๐Ÿ›  Fix TypeError: Cannot read property 'nodeType' of undefined error where anchorNode was undefined. (@tleunen in #1407)
    • ๐Ÿ›  Fix error thrown when callback tries to focus on editor after it has been unmounted. (@mattkrick in #1409)
    • ๐Ÿ›  Fix bug where selecting a single character then typing it doesn't replace it. (@karanjthakkar in #719)
    • Clear the block type when backspacing at the start of the first block with rich text utils. (@jvaill in #748)
  • v0.10.3 Changes

    September 28, 2017

    โž• Added

    • ๐Ÿ‘ Allow React 16.* as peer dependency. (@nikgraf in #1385)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed bug where using a custom block type without overriding the default block map threw an error. (@southerncross in #1302)
    • โšก๏ธ Update dependency on fbjs to get fix for bug where focus() caused unexpected scroll (@flarnie in #1401)
  • v0.10.2 Changes

    September 21, 2017

    โž• Added

    ๐Ÿ”„ Changed

    • ๐Ÿ”„ Change aria-owns to aria-controls in draft.js. (@jessebeach in 7f0cab28)
      • Deprecates support of ariaOwns and ariaOwneeID props.
    • ๐Ÿ—„ Deprecate use of ariaHasPopup prop in draft.js. ariaExpanded should be used instead if an input is showing a dropdown with options.(@jessebeach in 744e9b4e)
    • 0๏ธโƒฃ Pasting an img no longer inserts the src by default; now inserts image emoji if no decorator is used. (@aadsm in 0b22d713 and @flarnie in 1378)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix issue where selection state was not cleared on blur and refocus of the
      editor. (@sophiebits in
      19b9b1c5)
    • ๐Ÿ›  Fix issue where pasting code into code block defaulted to plain text, and
      ๐Ÿ’… styles were dropped from pasted blocks in general.
      (@bumbu in
      e8d10112)
    • ๐Ÿ›  Fix issue where Flow was not running with some 'import' statements (@flarnie & @yuku-t in #1263)
    • ๐Ÿ›  Fix bug where Draft threw when two keys were pressed at same time in React 16 async mode (@sophiebits in 1c6a49b8)
    • ๐Ÿ›  Fix recent Chrome bug where tab causes error (@sophiebits in 5863399a)
    • ๐Ÿ›  Fix "Refs must have owner" error when multiple copies of React are used (@mks11 in #925)
    • ๐Ÿ›  Fix issue where AT could treat 'return' as submit in Draft (@jessebeach in #1295)
    • Don't allow aria-expanded to be true unless the aria role is combobox (@jessebeach in 3494d45d)
    • ๐Ÿ›  Fix pesky "This Selection object doesn't have any Ranges" bug (@sophiebits in 96688e10 and 036e3a84)
    • ๐Ÿ›  Fix bug where pasting img with large data URL source could crash editor (@aadsm in 0b22d713)
  • v0.10.1 Changes

    May 09, 2017

    โž• Added

    • ๐Ÿ‘Œ Support UMD in dist output format (#1090)
    • ๐Ÿ”ฆ Expose textDirectionality prop
    • ๐Ÿ”ฆ Expose props disabling auto-correct, auto-complete, auto-capitalize
    • โž• Add editorKey prop for SSR
    • ๐Ÿ’… Pass block to customStyleFn callback
    • โž• Added moveAtomicBlock to AtomicBlockUtils

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix some cases of "Failed to execute 'setStart' on 'Range" bug (#1162)
    • ๐Ÿ›  Fix Chrome text deletion bug (#1155)
    • Pass fresh editorState to edit handlers (#1112 and #1113)
    • ๐Ÿ›  Fix for text insertion bugs in Android 5.1
    • Correctly delete immutable and segmented entity content when at the edge of a
      selection
  • v0.10.0 Changes

    January 28, 2017

    โž• Added

    • โž• Add improved API for entity manipulation to contentState
    • โž• Add deprecation warnings to old Entity module API
    • โž• Add image support to convertFromHTML
    • โž• Add option of 'aliasedElements' in block render map

    ๐Ÿ”„ Changed

    • ๐Ÿ‘ This version supports both the old and new Entity API; we are deprecating the Entity module in favor of using contentState. See the migration guide.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix bug where block data was not removed when deleting atomic block
    • ๐Ÿ›  Fix bug preventing pasting from clipboard
    • ๐Ÿ›  Fix dead key deletion and deletion in 2-Set Korean
    • ๐Ÿ›  Fix ContentState.createFromBlockArray to allow taking an empty array
    • ๐Ÿ‘Œ Improve typing in Korean on Windows
  • v0.9.1 Changes

    September 16, 2016

    โž• Added

    • ๐Ÿ’… customStyleFn for more control over inline style ranges

    ๐Ÿ›  Fixed

    • โšก๏ธ Update Flow version
    • ๐Ÿ›  Fix flow error in DraftEditorDragHandler
  • v0.9.0 Changes

    September 13, 2016

    ๐Ÿ”„ Changed

    • Return 'handled' or 'not-handled' from cancellable handlers callback
      • Boolean return value is deprecated
    • ๐Ÿ“š Expand and update documentation

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix selection of atomic block when it is the last block
    • Preserve the depth of custom block types when converting to raw
    • Stop mutating component children when creating blocks with wrapper elements
  • v0.8.1 Changes

    August 12, 2016

    ๐Ÿ›  Fixed

    • Include object-assign in npm dependencies
    • Include babel-core in npm dependencies of tex example
  • v0.8.0 Changes

    August 08, 2016

    โž• Added

    • ๐Ÿ’… customStyleFn for more control over inline style ranges
    • ๐Ÿ‘‰ Uses internalClipboard for Safari
    • ๐Ÿ“‡ Metadata for ContentBlock objects
    • convertFromHTMLToContentBlocks:
      • Support for mailto protocol for links
      • Support "unset" inline styles
    • ๐Ÿ‘• Run ESLint on examples

    ๐Ÿ”„ Changed

    • โœ‚ Removed redundant ESLint module in TeX example
    • โšก๏ธ Update Travis CI config for readability, Node v4 requirements, and pruning/updating npm dependencies
    • โšก๏ธ Use immutable ~3.7.4 to avoid Flow errors in updated versions
    • Modify getSelectionOffsetKeyForNode to search for nested offset-annotated nodes
    • โฌ†๏ธ Upgrade eslint to 3.0.1, use fbjs config
    • โšก๏ธ Update to Flow 0.28
    • Jest
      • Update to 12.1.1
      • Replaced jest.fn().mockReturnValue(x) with jest.fn(() => x)
    • โœ‚ Remove extra spaces from the text decoration style
    • No longer using nullthrows for blockRenderMap
    • convertFromHTMLToContentBlocks:
      • Improved variable names in joinChunks
      • Additional whitelisted entities such as className, rel, target, title

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix bug where placeholder text was not being erased in Chrome
    • ๐Ÿ›  Fix bug where double click link in Firefox broke selection
    • Kill iOS tooltips
    • โœ‚ removed unnecessary undefined checks on DraftEditorLeaf
    • convertFromHTMLToContentBlocks:
      • Preserve pasted block type on paste
      • Strip XML carriage returns and zero-width spaces
      • getBlockMapSupportedTags() will always return a valid array of tags
    • ๐Ÿ“š Documentation fixes