Skip to content

Commit

Permalink
ToggleEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
cavo789 committed Dec 12, 2018
1 parent f7cc464 commit d43bcbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@
<button type="button" id="btnConvert" class="btn btn-primary">
Convert
</button>
<button class="btnToggle btn btn-success">
Toggle editor
</button>
<button disabled="disabled" class="btnClipboard d-none btn btn-success" data-clipboard-target="#HTML">
Copy to clipboard
</button>
Expand Down Expand Up @@ -241,6 +244,12 @@ function convertMD2HTML() {
e.stopImmediatePropagation();
convertMD2HTML();
});

$('.btnToggle').click(function(e) {
e.stopImmediatePropagation();
$('#editor').parent().toggleClass('d-none');
});

});
</script>
</body>
Expand Down

0 comments on commit d43bcbb

Please sign in to comment.