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;