Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request pandao#130 from akof1314/master
Browse files Browse the repository at this point in the history
修复未实时预览不能全屏预览
  • Loading branch information
pandao committed May 15, 2016
2 parents a546b4d + 9e8ff26 commit edc2169
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1965,14 +1965,15 @@

save : function() {

if (timer === null)
var _this = this;
var state = this.state;
var settings = this.settings;

if (timer === null && !(!settings.watch && state.preview))
{
return this;
}

var _this = this;
var state = this.state;
var settings = this.settings;
var cm = this.cm;
var cmValue = cm.getValue();
var previewContainer = this.previewContainer;
Expand Down

0 comments on commit edc2169

Please sign in to comment.