Again, ooops.

This commit is contained in:
Coma Grayce 2020-07-21 01:19:11 +03:00
parent cd0f1a8eb2
commit cbed6547e2
No known key found for this signature in database
GPG Key ID: ADC223901D3524FE

View File

@ -471,12 +471,12 @@ export class MarkdownTextArea extends Component<
handleInsertSubscript(i: MarkdownTextArea, event: any) { handleInsertSubscript(i: MarkdownTextArea, event: any) {
event.preventDefault(); event.preventDefault();
i.simpleInsert('~'); i.simpleSurround('~');
} }
handleInsertSuperscript(i: MarkdownTextArea, event: any) { handleInsertSuperscript(i: MarkdownTextArea, event: any) {
event.preventDefault(); event.preventDefault();
i.simpleInsert('^'); i.simpleSurround('^');
} }
simpleInsert(chars: string) { simpleInsert(chars: string) {