-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5725d36
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |