Initial Commit for try-toast-ui
Learning about toastui markdown editor.
This commit is contained in:
commit
a32dedfbc7
4 changed files with 33 additions and 0 deletions
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# try-toast-ui
|
||||||
|
|
||||||
|
Learning about toastui markdown editor.
|
||||||
28
index.html
Normal file
28
index.html
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<!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>
|
||||||
2
justfile
Normal file
2
justfile
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
serve:
|
||||||
|
python -m http.server 8000
|
||||||
Loading…
Add table
Add a link
Reference in a new issue