From 03cc2f8270c63c10c679b3b797c87089488f14c6 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 10 Sep 2017 16:17:54 -0700 Subject: [PATCH] Rollback codemirror version --- package.json | 2 +- pages/editor.js | 5 +---- yarn.lock | 35 ++++++++++++++++++++++++++--------- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 103b8a1..e5e391c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "next": "^2.4.3", "react": "^15.5.4", "react-click-outside": "^2.3.1", - "react-codemirror": "^1.0.0", + "react-codemirror": "0.2.6", "react-color": "^2.12.1", "react-dnd": "^2.4.0", "react-dnd-html5-backend": "^2.4.1", diff --git a/pages/editor.js b/pages/editor.js index 5935516..c265fb1 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -72,10 +72,7 @@ class Editor extends React.Component { {/* TODO this doesn't update the render */} { - console.log(droppedContent) - this.setState({ droppedContent }) - }} + onDrop={droppedContent => this.setState({ droppedContent })} >