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
- Support for
- ๐ 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)
withjest.fn(() => x)
- โ Remove extra spaces from the text decoration style
- No longer using
nullthrows
forblockRenderMap
convertFromHTMLToContentBlocks
:- Improved variable names in
joinChunks
- Additional whitelisted entities such as
className
,rel
,target
,title
- Improved variable names in
๐ 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 onDraftEditorLeaf
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
- ๐