-
Notifications
You must be signed in to change notification settings - Fork 2
/
markdown_editor.html
29 lines (21 loc) · 1.43 KB
/
markdown_editor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<title>Markdown Text Editor | Scriptor.js Demo</title>
<link href="https://unpkg.com/primer@latest/build/build.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/gh/MarketingPipeline/Scriptor.js/dist/scriptor.min.js" defer></script>
</head>
<body>
<div class="container py-4">
<button class="btn" data-scriptor-btn value="#" htmltags="false" wrap="false" type="button">H1</button>
<button class="btn" data-scriptor-btn value="##" wrap="false" htmltags="false" type="button">H2</button>
<button class="btn" data-scriptor-btn value="###" htmltags="false" wrap="false" type="button">H3</button>
<button class="btn" data-scriptor-btn value="**" htmltags="false" wrap="True" type="button">Bold</button>
<button class="btn" data-scriptor-btn value="i" wrap="True" type="button">Italic</button>
<button class="btn" data-scriptor-btn value="details" wrap="True" wrap="True" type="button">Details</button>
<button class="btn" data-scriptor-btn value="blockquote" wrap="True" type="button">Block Quotes</button>
<textarea id="text-editor" spellcheck="true" class="mt-3 d-block width-full"></textarea>
<button class="btn" data-scriptor-btn value="@" wrap="false" htmltags="false" type="button">GitHub Mention</button>
<button class="btn" data-scriptor-btn value="~~" wrap="True" htmltags="false" type="button">StrikeThrough</button>
</div>
</body>
</html>