Add buttons.

This commit is contained in:
Coma Grayce 2020-07-21 02:40:01 +03:00
parent cbed6547e2
commit 020cb77613
No known key found for this signature in database
GPG key ID: ADC223901D3524FE
3 changed files with 26 additions and 0 deletions

View file

@ -187,6 +187,24 @@ export class MarkdownTextArea extends Component<
<use xlinkHref="#icon-italic"></use>
</svg>
</button>
<button
class="btn btn-sm text-muted"
data-tippy-content={i18n.t('subscript')}
onClick={linkEvent(this, this.handleInsertSubscript)}
>
<svg class="icon icon-inline">
<use xlinkHref="#icon-subscript"></use>
</svg>
</button>
<button
class="btn btn-sm text-muted"
data-tippy-content={i18n.t('superscript')}
onClick={linkEvent(this, this.handleInsertSuperscript)}
>
<svg class="icon icon-inline">
<use xlinkHref="#icon-superscript"></use>
</svg>
</button>
<button
class="btn btn-sm text-muted"
data-tippy-content={i18n.t('link')}

File diff suppressed because one or more lines are too long

View file

@ -53,6 +53,8 @@
"archive_link": "archive link",
"bold": "bold",
"italic": "italic",
"subscript": "subscript",
"superscript": "superscript",
"header": "header",
"strikethrough": "strikethrough",
"quote": "quote",