diff --git a/js/bootstrap-markdown.js b/js/bootstrap-markdown.js index 0e82582..1a7aefa 100644 --- a/js/bootstrap-markdown.js +++ b/js/bootstrap-markdown.js @@ -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