Skip to content

Commit

Permalink
Fix duplicate preview element #170
Browse files Browse the repository at this point in the history
  • Loading branch information
toopay committed Apr 22, 2015
1 parent cb81c91 commit 67d6105
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/bootstrap-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@
content,
callbackContent;

if (this.$isPreview == true) {
// Avoid sequenced element creation on missused scenario
// @see https://github.com/toopay/bootstrap-markdown/issues/170
return this;
}

// Give flag that tell the editor enter preview mode
this.$isPreview = true;
// Disable all buttons
Expand Down

0 comments on commit 67d6105

Please sign in to comment.