Changelog
description
prop for all formats to describe the format's use with more text than the label
.description
as well as its keyboard shortcut.―
and br: ↵
.##
), code block (triple backtick), blockquote (>
), hr (---
) (#53).spellCheck
prop, passed to Draft.js Editor
. Sets whether spellcheck is turned on for your editor.draftjs-utils
to 0.8.8.This release does not have many breaking changes, but the editor's toolbar styles have changed a lot and this may cause breakage.
First, update Draftail and its Draft.js peer dependency: npm install --save draft-js@^0.10.4 draftail@0.9.0
.
Then, you will want to update controls to leverage the new description
prop. It will be displayed in the new toolbar tooltips. Here is a brief example:
blockTypes={[
{
type: BLOCK_TYPE.HEADER_THREE,
label: 'H3',
// Use a description to further convey what the control does.
+ description: 'Heading 3',
},
{
type: BLOCK_TYPE.UNORDERED_LIST_ITEM,
// The icon is enough – but use the new prop to help screen reader users.
- label: 'UL',
+ description: 'Bulleted list',
icon: 'icon-list-ul',
},
]}
Changelog
name
attribute to button elements to simplify targeting in browser automation tests.Changelog
placeholder
attribute.Element.closest
polyfill from main lib.Changelog
peerDependency
to be a dependency.peerDependency
to be a dependency.stripPastedStyles
option.