Skip to content

Commit edc2169

Browse files
committed
Merge pull request pandao#130 from akof1314/master
修复未实时预览不能全屏预览
2 parents a546b4d + 9e8ff26 commit edc2169

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

editormd.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,14 +1965,15 @@
19651965

19661966
save : function() {
19671967

1968-
if (timer === null)
1968+
var _this = this;
1969+
var state = this.state;
1970+
var settings = this.settings;
1971+
1972+
if (timer === null && !(!settings.watch && state.preview))
19691973
{
19701974
return this;
19711975
}
19721976

1973-
var _this = this;
1974-
var state = this.state;
1975-
var settings = this.settings;
19761977
var cm = this.cm;
19771978
var cmValue = cm.getValue();
19781979
var previewContainer = this.previewContainer;

0 commit comments

Comments
 (0)