This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Releases: facebookarchive/draft-js
Releases · facebookarchive/draft-js
v0.6.0
v0.5.0
Fixed
- option+spacebar no longer incorrectly scrolls browser in Chrome OSX
- Cursor behavior when adding soft newlines
Added
AtomicBlockUtils
, a utility module to simplify addingatomic
blocks to
anEditorState
Changed
- The
media
block type is nowatomic
, to better represent that this type
is not just intended for photos and videos
v0.4.0
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
- Includes
- Replace
onPasteRawText
prop withhandlePastedText
v0.3.0
v0.2.1
v0.2.0
Added
- Move
white-space: pre-wrap
into inline style to resolve insertion issues handleDrop
prop method forEditor
to allow manual drop managementdecoratedText
prop for decorator componentsgetVisibleSelectionRect
, to provide Rect for DOM selection- Export
KeyBindingUtil
andgetDefaultKeyBinding
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