TOAST UI Editor can be used by using the package manager or downloading the source directly. However, we highly recommend using the package manager.
<!-- HTML -->
<div id="ToastUiEditor"></div>
<!-- JavaScript -->
<script >
const editor = new Editor({
el: document.querySelector('#ToastUiEditor'),
previewStyle: 'tab',
height: '300px',
});
editor.getMarkdown();
</script>