Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb TZ committed Apr 23, 2024
1 parent 436525e commit 359d78d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/BareMDE_v0.2.3.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/demo.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/BareMDE/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default class BareMDE extends Component{
this.toggleSpellcheck = this.toggleSpellcheck.bind(this);
this.toggleSyncScroll = this.toggleSyncScroll.bind(this);
this.doPreview = this.doPreview.bind(this);
this.refreshPreview = this.refreshPreview.bind(this);

//
this.saveFile = this.saveFile.bind(this);
Expand Down Expand Up @@ -322,7 +323,7 @@ export default class BareMDE extends Component{
}

refreshPreview(){
this.previewFrame.current.contentWindow.body.innerHTML = "";
this.previewFrame.current.contentWindow.document.body.innerHTML = "";
this.doPreview(true);
}

Expand Down

0 comments on commit 359d78d

Please sign in to comment.