📝🍸 A configurable rich text editor built with Draft.js
Documentation: draftail.org/docs/getting-started
label
to null
. #442
Documentation: draftail.org/docs/1.3.0/getting-started
🎉 blog post for this release: Draftail v1.3.0: community improvements, beyond Wagtail.
readOnly
prop, matching behavior of Draft.js. #201, #206, thanks to @SpearThruster.editorState
and onChange
props. Have a look at the controlled component documentation for further details. #180, #207.Documentation: draftail.org/docs/1.2.1/getting-started
Documentation: draftail.org/docs/1.2.0/getting-started
🎉 blog post for this release: Draftail v1.2.0: supporting modern experiences.
plugins
API to support extensions of the editor using the draft-js-plugins architecture (#83, #171).This new API makes it possible to build much more advanced extensions to the editor than ever before, such as autocompletes, linkify, custom blocks, custom toolbars, and more. Read the release blog post to learn more about the motivation for those new APIs.
DraftUtils.resetBlockWithType()
.topToolbar
.bottomToolbar
.**
for bold, _
for italic, etc (#134, #187). View the full list of keyboard shortcuts.*-list-item
blocks. All that’s required is for the block type to end with -list-item
.Documentation: draftail.org/docs/1.1.0/getting-started
🎉 blog post for this release: Draftail v1.1.0: a quality of life release.
onFocus
and onBlur
props to use callbacks on those events. This can be useful for form validation. #170, #174, thanks to @TheSpicyMeatball.onSave
in the editor’s onBlur
(#173).DraftUtils.getEntitySelection
, when the provided entity key isn't valid (undefined, missing) (#168).draftjs-filters
dependency (#179).draftjs-conductor
dependency.peerDependency
to be a dependency.peerDependency
to be a dependency.stripPastedStyles
option.hr
availability configurable with enableHorizontalRule
. #25.br
support, availability configurable with enableLineBreak
.-
, *
, 1.
are automatically converted to list items).hr
representation to use atomic block and entity instead of custom block type. #1mediaControls
, dialogControls
and modelPickerOptions
are now a single entityTypes
array. #26sources
and decorators
are now declared directly in the entityTypes
array items.INLINE_STYLES
property is now inlineStyles
.BLOCK_TYPES
property is now blockTypes
.type
attribute instead of style
.imageFormats
are now assigned directly on the IMAGE
entity type. #33DraftailEditor
instead of attributes of the options
prop. #21