We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74a43a8 commit 26c521dCopy full SHA for 26c521d
README.md
@@ -35,9 +35,12 @@ import { EditorState } from 'draft-js';
35
const plugins = [createMarkdownShortcutsPlugin()];
36
37
export default class DemoEditor extends Component {
38
- state = {
39
- editorState: EditorState.createEmpty(),
40
- };
+ constructor(props) {
+ super(props);
+ state = {
41
+ editorState: EditorState.createEmpty(),
42
+ };
43
+ }
44
45
onChange = editorState => {
46
this.setState({
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "draft-js-markdown-shortcuts-plugin",
3
- "version": "0.5.0",
+ "version": "0.6.0",
4
"description": "A DraftJS plugin for supporting Markdown syntax shortcuts",
5
"main": "lib/index.js",
6
"scripts": {
0 commit comments