diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-29 23:09:51 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-29 23:09:51 -0500 |
commit | 90130014dd27a909fda8a63d3ce520d4d31fd68c (patch) | |
tree | 567a2ce75e2102e810a98ece02ca83257e460911 /app/javascript/flavours/glitch/features/compose/components | |
parent | 0fb1e7888e8f2f83c8f1d6b19a44b6c079251a2e (diff) |
add plain-text console formatting option
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose/components')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/options.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/options.js b/app/javascript/flavours/glitch/features/compose/components/options.js index 4203eb567..5782e8c04 100644 --- a/app/javascript/flavours/glitch/features/compose/components/options.js +++ b/app/javascript/flavours/glitch/features/compose/components/options.js @@ -77,6 +77,10 @@ const messages = defineMessages({ defaultMessage: 'Markdown', id: 'compose.content-type.markdown', }, + console: { + defaultMessage: 'Console', + id: 'compose.content-type.console', + }, plain: { defaultMessage: 'Plain text', id: 'compose.content-type.plain', @@ -258,6 +262,11 @@ class ComposerOptions extends ImmutablePureComponent { name: 'text/plain', text: <FormattedMessage {...messages.plain} />, }, + console: { + icon: 'terminal', + name: 'text/console', + text: <FormattedMessage {...messages.console} />, + }, html: { icon: 'code', name: 'text/html', @@ -355,6 +364,7 @@ class ComposerOptions extends ImmutablePureComponent { contentTypeItems.xbbcode, contentTypeItems.html, contentTypeItems.plain, + contentTypeItems.console, ]} onChange={onChangeContentType} onModalClose={onModalClose} |