draft-js-plugins-editor
Checkout www.draft-js-plugins.com
use @draft-js-plugins/editor >=v4 instead
Editor for DraftJS Plugins
Checkout www.draft-js-plugins.com
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
handleKeyCommand
now receives the arguments (command, editorState, pluginFunctions)
handlePastedText
now receives the arguments (text, html, editorState, pluginFunctions)
handleBeforeInput
now receives the arguments (chars, editorState, pluginFunctions)
handleReturn
now receives the arguments (event, editorState, pluginFunctions)
onChange
& and all handlers now also receive: getPlugins
, getProps
, getReadOnly
, setReadOnly
, getEditorRef
.defaultBlockRenderMap
option, by default is set to true. If set to false the defaultBlockRenderMap from Draft.js is not used as base for the generated blockRenderMap.decorators
option now allows custom implementations the DraftDecoratorType interface to be passed into the array along with the traditional CompositeDecorator objectscomposeDecorators
as a named export.blockStyleFn
in case its value is null
. #596decorators
don't decorate plugins anymore.willUnmount
hook. This hook receives one object as argument, which contains getEditorState
& setEditorState
. The hook will be executed once the Editor component is about to be unmounted.decorators
in case it's value is null
#233initialize
hook. This hook receives one object as argument, which contains getEditorState
& setEditorState
.