From 0dfcc72eb73f101b29d3648af734d213c8c0fe35 Mon Sep 17 00:00:00 2001 From: Jonathon Kelly Date: Thu, 7 Apr 2016 09:34:22 +0100 Subject: [PATCH 1/9] first stage of on image drop, fire on change event with all image placeholders --- src/index.js | 59 +++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 47 insertions(+), 12 deletions(-) diff --git a/src/index.js b/src/index.js index 40d5eef..908e41c 100644 --- a/src/index.js +++ b/src/index.js @@ -2,31 +2,66 @@ import React from 'react'; import MarkdownRenderer from 'react-markdown-renderer'; import TextArea from 'react-textarea-autosize'; -function MarkdownEditor(props) { - return ( -
-
-

Markdown

+const imageType = /^image\//; -