Socket
Socket
Sign inDemoInstall

draft-js-undo-plugin

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draft-js-undo-plugin - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

lib/index.js.map

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc