UNPKG

3.54 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4This project adheres to [Semantic Versioning](http://semver.org/).
5
6## 2.1.1
7- Use only part of RichUtils.handleKeyCommand, since we don't want to automatically assume that code, bold, italic and the likes are included in an editor
8
9## 2.1.0
10- Add defaultKeyCommands
11- This fixes removing atomic block entities on backspace and also automatically adds richutils keycommand behaviour as detailed here https://draftjs.org/docs/quickstart-rich-styling.html#richutils-and-key-commands
12
13## 2.0.8
14- fix decorator resolution for custom decorators - "size" of undefined error #1034
15
16## 2.0.6 - 2.0.7
17- bumped find-with-regex
18
19## 2.0.5
20- Fix decorator resolution in componentWillReceiveProps
21
22## 2.0.4
23- Tighten Immutable.js dependency requirements to ~3.7.4 to match draft-js and other plugins
24
25## 2.0.3
26- Bugfix - componentWillReceiveProps causes infite update loop in some circumstances
27
28## 2.0.2
29- Automatically update decoratorless editorState upon props update
30
31## 2.0.1
32- blockStyleFn returns '' instead of false
33- `handleKeyCommand` now receives the arguments `(command, editorState, pluginFunctions)`
34- `handlePastedText` now receives the arguments `(text, html, editorState, pluginFunctions)`
35- `handleBeforeInput` now receives the arguments `(chars, editorState, pluginFunctions)`
36- `handleReturn` now receives the arguments `(event, editorState, pluginFunctions)`
37- `onChange` & and all handlers now also receive: `getPlugins`, `getProps`, `getReadOnly`, `setReadOnly`, `getEditorRef`.
38- `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.
39- `decorators` option now allows custom implementations the [DraftDecoratorType](https://github.com/facebook/draft-js/blob/master/src/model/decorators/DraftDecoratorType.js) interface to be passed into the array along with the traditional CompositeDecorator objects
40- added the utility function `composeDecorators` as a named export.
41- Ignore handle `blockStyleFn` in case its value is `null` . [#596](https://github.com/draft-js-plugins/draft-js-plugins/pull/596)
42
43### Removed
44
45- `decorators` don't decorate plugins anymore.
46
47## 1.1.0 - 2016-05-30
48
49### Added
50
51- Added `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.
52
53## 1.0.1 - 2016-05-03
54
55### Fixed
56
57- Properly handle the property `decorators` in case it's value is `null` [#233](https://github.com/draft-js-plugins/draft-js-plugins/issues/233)
58
59## 1.0.0 - 2016-04-20
60
61### Changed
62
63- Moved to a flat configuration. Instead of plugin properties (decorators & hooks) being stored within pluginProps they now moved to the root object. See the changes here [#150](https://github.com/draft-js-plugins/draft-js-plugins/pull/150/files) as well as the initial discussion here [#143](https://github.com/draft-js-plugins/draft-js-plugins/issues/143)
64
65### Added
66
67- Added propTypes to the Editor
68- Added `initialize` hook. This hook receives one object as argument, which contains `getEditorState` & `setEditorState`.
69
70## 0.2.0 - 2016-03-25
71
72### Changed
73
74- Move DraftJS & ImmutableJS to peerDependencies instead of dependencies.
75
76## 0.1.0 - 2016-03-25
77
78### Added
79- Allow to provide a custom handleKeyCommand to the Editor.
80
81## 0.0.0 - 2016-03-23
82### Released the first working version of DraftJS Plugins Editor