Files
LMS/web/src/main/resources/templates/fragments/md-toolbar.html

22 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru" xmlns:th="http://www.thymeleaf.org">
<body>
<!-- Панель форматирования markdown. target — CSS-селектор textarea -->
<div th:fragment="toolbar(target)" class="md-toolbar" th:attr="data-md-target=${target}">
<button type="button" class="md-btn" data-md="bold" title="Полужирный: **текст**"><b>Полужирный</b></button>
<button type="button" class="md-btn" data-md="italic" title="Курсив: *текст*"><i>Курсив</i></button>
<button type="button" class="md-btn" data-md="h2" title="Заголовок раздела">Заголовок</button>
<button type="button" class="md-btn" data-md="ul" title="Маркированный список">Список</button>
<button type="button" class="md-btn" data-md="ol" title="Нумерованный список">Нумерация</button>
<button type="button" class="md-btn" data-md="quote" title="Цитата">Цитата</button>
<button type="button" class="md-btn" data-md="link" title="Ссылка">Ссылка</button>
<button type="button" class="md-btn" data-md="code" title="Код в строке">Код</button>
<button type="button" class="md-btn" data-md="codeblock" title="Блок кода на C">Блок кода</button>
<button type="button" class="md-btn" data-md="table" title="Таблица">Таблица</button>
<button type="button" class="md-btn" data-md="figure" title="Картинка с подписью (файл в assets/)">Картинка</button>
<button type="button" class="md-btn" data-md="video" title="Видео (файл в assets/)">Видео</button>
<button type="button" class="md-btn" data-md="spoiler" title="Спойлер: текст скрыт, открывается по клику">Спойлер</button>
</div>
</body>
</html>