Draft.js v0.8.0 Release Notes

Release Date: 2016-08-08 // almost 8 years ago
  • โž• 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