draft-js-undo-plugin
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -7,1 +7,6 @@ # Change Log | ||
## To Be Released | ||
## 0.0.5 - 2016-03-25 | ||
### Released the first working of DraftJS Undo Plugin | ||
It's not recommended to use the version 0.0.0 - 0.0.4 |
{ | ||
"name": "draft-js-undo-plugin", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Undo Plugin for DraftJS", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -29,1 +29,31 @@ # History Plugin | ||
``` | ||
## Importing the default styles | ||
The plugin ships with a default styling available at this location in the installed package: | ||
`node_modules/draft-js-mention-plugin/lib/plugin.css`. | ||
### Webpack Usage | ||
You can import the css file by using the `style-loader` and `css-loader`. For example you can add this to your webpack config: | ||
```js | ||
module: { | ||
loaders: [{ | ||
test: /\.css$/, | ||
loaders: [ | ||
'style', 'css' | ||
] | ||
}] | ||
} | ||
``` | ||
and then import the styles: | ||
```js | ||
import 'draft-js-undo-plugin/lib/plugin.css'; | ||
``` | ||
### Browserify Usage | ||
TODO: PR welcome |
Sorry, the diff of this file is not supported yet
59
17145
10
257