28 lines
622 B
HTML
28 lines
622 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Toast UI Editor</title>
|
|
|
|
<!-- Toast UI Editor CSS -->
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css"
|
|
/>
|
|
</head>
|
|
<body>
|
|
<div id="editor"></div>
|
|
|
|
<!-- Toast UI Editor JS -->
|
|
<script src="https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js"></script>
|
|
|
|
<script>
|
|
const editor = new toastui.Editor({
|
|
el: document.querySelector('#editor'),
|
|
height: '500px',
|
|
initialEditType: 'markdown',
|
|
previewStyle: 'vertical'
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|