From ce536d8b9cdd47a5d05e1adce8d6534fd5868087 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 4 Jul 2015 15:58:43 +0800 Subject: [PATCH] fixed bug input method. --- build/MDEditor.min.js | 1 + lib/MDEditor.js | 1 + 2 files changed, 2 insertions(+) diff --git a/build/MDEditor.min.js b/build/MDEditor.min.js index cb7562d..ace96c6 100644 --- a/build/MDEditor.min.js +++ b/build/MDEditor.min.js @@ -927,6 +927,7 @@ css(self.preview, { height: self.textarea.offsetHeight + "px" }); + self.opts.value = this.value; self.callback(event, self.opts); }); return this; diff --git a/lib/MDEditor.js b/lib/MDEditor.js index 4777d1a..a7233f1 100644 --- a/lib/MDEditor.js +++ b/lib/MDEditor.js @@ -179,6 +179,7 @@ }); } css(self.preview,{'height':self.textarea.offsetHeight + "px"}); + self.opts.value = this.value self.callback(event,self.opts) }); return this;