draft-js-undo-plugin
Advanced tools
Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "draft-js-undo-plugin", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Undo Plugin for DraftJS", | ||
@@ -30,3 +30,3 @@ "author": { | ||
"scripts": { | ||
"build": "BABEL_ENV=production ../node_modules/.bin/babel --out-dir='lib' --ignore='__tests__/*' src", | ||
"build": "NODE_ENV=production BABEL_ENV=production ../node_modules/.bin/webpack --config webpack.config.js", | ||
"prepublish": "npm run build" | ||
@@ -37,3 +37,3 @@ }, | ||
"decorate-component-with-props": "^1.0.2", | ||
"draft-js": "^0.2.2", | ||
"draft-js": "^0.3.0", | ||
"find-with-regex": "^1.0.2", | ||
@@ -40,0 +40,0 @@ "immutable": "^3.7.6", |
@@ -17,9 +17,9 @@ # History Plugin | ||
Now import the `UndoButton` and the `RedoButton` from the instance: | ||
Now get the `UndoButton` and the `RedoButton` components from the instance: | ||
```JS | ||
import { UndoButton, RedoButton } from undoPlugin; | ||
const { UndoButton, RedoButton } = undoPlugin; | ||
``` | ||
Which take two props, `onChange` (a function that takes a new editor state as an argument and updates your editors state) and `editorState` (the current editor state). Render them with those props and your editor now has undo/redo functionality! | ||
Which take two props, `onChange` (a function that takes a new editor state as an argument and updates your editor's state) and `editorState` (the current editor state). Render them with those props and your editor now has undo/redo functionality! | ||
@@ -26,0 +26,0 @@ ```HTML |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2709499
31828
8
1
+ Addeddraft-js@0.3.0(transitive)
- Removeddraft-js@0.2.2(transitive)
Updateddraft-js@^0.3.0