Releases: springload/draftail
Releases · springload/draftail
v0.7.0
Added
- Make the editor toolbar sticky (requires a polyfill, documented in README).
- Add support for
placeholder
attribute.
Changed
- Improve "active block" rendering and disabled state.
Fixed
- Fix missing vertical spacing between button rows.
- Fix missing pointer cursor on tooltip button.
Removed
- Remove
Element.closest
polyfill from main lib.
v0.6.0
Added
- Add default
strategy
for entity types based ontype
.
Changed
- Change empty
RawDraftContentState
in conversion API to be null. - Change entity type nomenclature to use
source
anddecorator
in place ofcontrol
andcomponent
.
v0.5.0
Added
- Implement list depth normalisation on copy/paste.
- Add title attributes on buttons to display keyboard shortcuts. Fix #37.
- Override default code-block element. Fix #41.
Changed
- Update project to use [email protected] API
- Move draftjs-utils
peerDependency
to be a dependency. - Move immutable
peerDependency
to be a dependency. - Copy/paste of rich text is now configurable via the
stripPastedStyles
option. - Copy/paste of rich text is now disabled by default. This will be enabled by default once it is better supported.
v0.4.1
Fixed
- Fix image block not unlocking editor on cancel.
v0.4.0
Added
- Make
hr
availability configurable withenableHorizontalRule
. #25. - Add
br
support, availability configurable withenableLineBreak
. - Prevent soft line breaks from keyboard shortcut if disabled.
- Add editor CSS to published package. #17
- Add common keyboard shortcuts (inspired by Google Docs, see documentation for the full list).
- Add support for "autolist" behavior (lines starting with
-
,*
,1.
are automatically converted to list items).
Changed
- Max nested list level is now 1.
- Max nested list level is now configurable via a prop.
- Save interval is now configurable via a prop.
- Change
hr
representation to use atomic block and entity instead of custom block type. #1 mediaControls
,dialogControls
andmodelPickerOptions
are now a singleentityTypes
array. #26sources
anddecorators
are now declared directly in theentityTypes
array items.INLINE_STYLES
property is nowinlineStyles
.BLOCK_TYPES
property is nowblockTypes
.- Inline styles and block types now use the
type
attribute instead ofstyle
. imageFormats
are now assigned directly on theIMAGE
entity type. #33- All options are now direct props of
DraftailEditor
instead of attributes of theoptions
prop. #21
Fixed
- Fix erratic behavior of list nesting changes with tab and shift+tab shortcuts. #34
- Fix keyboard shortcuts giving access to unallowed formatting. #32
- Fix tooltip not opening when clicking decorator icon. #5
Removed
- draftail no longer depends on jQuery.
- draftail no longer depends on the Wagtail font icon.
v0.3.3
Added
- Allow customisation of block style function & block render map.
v0.3.2
Added
- Pressing return on an empty list item should un-indent it until it is not nested, and then remove it.
- Pressing return at the end of a block should create an empty unstyled block.
v0.3.1
Fixed
- Buttons do not trigger a form submit
v0.3.0
v0.2.0
Changed
- Reworking most of the editor codebase to make it more maintainable.
- Configurable block types and inline styles.