Skip to content

Commit

Permalink
deploy: e0fa231
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed Dec 6, 2023
0 parents commit 5725d36
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
8 changes: 8 additions & 0 deletions assets/index.07e0d1be.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/index.a2a0c9af.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Editor example</title>

<script type="module" crossorigin src="./assets/index.07e0d1be.js"></script>
<link rel="stylesheet" href="./assets/index.a2a0c9af.css">
</head>
<body>
<main>
<p>Текстовый редактор + overlay (рамки у эмоджи)</p>
<div class="editor-wrap">
<div id="text-editor-scroller" class="editor-scroller">
<div class="editor-overlay"></div>
<div id="text-editor" class="editor"></div>
</div>
</div>

<!-- <p>Текстовый редактор</p>
<div class="editor-wrap">
<div id="raw-editor" class="editor" contenteditable>Привет мир 🥺</div>
</div> -->

<p>Markdown редактор</p>
<div class="editor-wrap">
<div id="md-editor" class="editor editor-scroller"></div>
</div>

<div class="toolbar hidden">
<span class="toolbar-btn bold selected" data-format="1">B</span>
<span class="toolbar-btn italic" data-format="2">I</span>
<span class="toolbar-btn strike" data-format="8">S</span>
<span class="toolbar-btn monospace" data-format="16">M</span>
<span class="toolbar-sep"></span>
<span class="toolbar-btn link">Ссылка</span>
</div>

<ul>
<li>⌘B — жирный</li>
<li>⌘I — курсив</li>
<li>⌘U — перечёркнутый</li>
<li>⌘K — моноширинный</li>
<li>^L — добавить ссылку (если указать пустое значение, ссылка удалится)</li>
</ul>
</main>

</body>
</html>

0 comments on commit 5725d36

Please sign in to comment.