Changelog
Changelog
ToolbarButton
component in the API.ariaDescribedBy
prop of Draft.js.onRemoveEntity
.ListNesting
implementation with the one from draftjs-conductor
.$draftail-placeholder-text
.DraftUtils.isSelectedBlockType()
.DraftUtils.hasCurrentInlineStyle()
.Changelog
className
prop for blocks by dynamically adding a class based on block type.draftjs-filters@0.7.0
to preserve list items in Word.draft-js
peerDependency version to 0.10.5.Changelog
icon
, label
, description
props.textAlignment
, textDirectionality
, autoCapitalize
, autoComplete
, autoCorrect
props of Draft.js.DraftUtils.addLineBreakRemovingSelection
to DraftUtils.addLineBreak
.showUndoRedoControls
with separate props showUndoControl
and showRedoControl
for which control UI can be overriden.DraftUtils.addLineBreak
adding line breaks in the wrong place when selection is collapsed.Changelog
draftjs-filters@0.5.0
to improve filtering on undefined attributes.Changelog
Draftail-unstyled
class to unstyled block, makes it easy to style unstyled blocks.$draftail-editor-background
variable to override editor bg.draftail-richtext-styles
mixin to style rich text content within the editor.focus()
API to the editor, like that of Draft.js.onClose
prop to sources, to close the source without focusing the editor again.vertical-align: middle;
by default.draftjs-filters@0.4.0
to allow filtering on undefined attributes.Changelog
$draftail-editor-padding, $draftail-editor-text, $draftail-editor-font-family, $draftail-editor-font-size, $draftail-editor-line-height, $draftail-toolbar-radius, $draftail-editor-border, $draftail-toolbar-tooltip-radius, $draftail-toolbar-tooltip-duration, $draftail-toolbar-tooltip-delay
.DraftailEditor
from default export of draftail to named export (import { DraftailEditor } from 'draftail';
).propTypes
in env check so they only appear in dev build.nested-list-item($depth)
to draftail-nested-list-item($depth)
.$draftail-tooltip-radius
based on $draftail-editor-radius
.DraftUtils.getSelectedBlock()
implementation.options
prop to entityType
for entity sources.onUpdate
prop to onComplete
for entity sources.entityConfig
prop to entityType
for entity blocks.draftjs-filters
(#123).immutable
from peerDependencies
.draftjs-utils
from dependencies
.DraftUtils.createEntity()
.DraftUtils.getAllBlocks()
.DraftUtils.getEntityRange()
.onClose
prop for entity sources.Changelog
DraftUtils.getEntitySelection(editorState, entityKey)
method, returning the selection corresponding to a given entity. Note: only works if the entity is in the currently selected block.DraftUtils.updateBlockEntity
method, with workaround for Draft.s 0.10 entity data update bug.public-DraftStyleDefault-depth${depth}
.nested-list-item($depth)
Sass mixin to generate styles for arbitrary list item nesting.Draftail-
class namespace for all styles (#63).Icon
implementation to use SVG by default. Supports symbol references, SVG path(s), and arbitrary React components (#119).Tooltip
outside of Draftail package.data-tooltip
.Portal
component outside of Draftail.block
prop to entityTypes, and move IMAGE
and EMBED
blocks outside of Draftail (#121).entityTypes
' block
to edit, remove entity.DraftUtils.getSelectedEntitySelection
. It can be replaced by DraftUtils.getEntitySelection(editorState, DraftUtils.getSelectionEntity(editorState))
.MODEL
entities.EMBED
entities.DOCUMENT
entities.entityTypes
' imageFormats
.entityTypes
strategy
.