Skip to content

Commit a3cce9f

Browse files
committedNov 11, 2017
update-docs: EditorComponent props passed to draft-js-plugin's Editor Component
1 parent b513ecd commit a3cce9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎HOW_TO_CREATE_A_PLUGIN.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default createCustomPlugin = (config) => {
4444

4545
# Supported Objects & Hooks
4646

47-
A plugin accepts all standard props the Draft.js Editor Component uses.
47+
A plugin accepts all standard props the Draft.js Editor Component uses. [See details on Draft.js docs](https://draftjs.org/docs/api-reference-editor.html#content). Commonly used props:
4848

4949
- [blockRendererFn](https://facebook.github.io/draft-js/docs/api-reference-editor.html#blockrendererfn)
5050
- [keyBindingFn](https://draftjs.org/docs/advanced-topics-key-bindings.html)
@@ -61,7 +61,11 @@ A plugin accepts all standard props the Draft.js Editor Component uses.
6161
- [onEscape](https://facebook.github.io/draft-js/docs/api-reference-editor.html#onescape)
6262
- [onTab](https://facebook.github.io/draft-js/docs/api-reference-editor.html#ontab)
6363
- [onUpArrow](https://facebook.github.io/draft-js/docs/api-reference-editor.html#onuparrow)
64+
- [onRightArrow](https://draftjs.org/docs/api-reference-editor.html#onrightarrow)
6465
- [onDownArrow](https://facebook.github.io/draft-js/docs/api-reference-editor.html#ondownarrow)
66+
- [onLeftArrow](https://draftjs.org/docs/api-reference-editor.html#onleftarrow)
67+
- [onFocus](https://draftjs.org/docs/api-reference-editor.html#onfocus)
68+
- [onBlur](https://draftjs.org/docs/api-reference-editor.html#onblur)
6569

6670
There is one difference compared to the original properties.
6771
All functions receive an additional argument. This argument is an object containing:

0 commit comments

Comments
 (0)
Please sign in to comment.