Add BBCode compositing option
This commit is contained in:
parent
560859e90a
commit
456a0f0672
2 changed files with 12 additions and 1 deletions
|
@ -5,4 +5,5 @@ Note: This file is to be cleared after each rebase on upstream
|
|||
Additions
|
||||
---------
|
||||
- `build.sh`: Add error reporting+failing
|
||||
- UI: Limit the inlined-images to a maximum size (400px tall & width of the post)
|
||||
- UI: Limit the inlined-images to a maximum size (400px tall & width of the post)
|
||||
- Compositing: Add BBCode content-type option
|
||||
|
|
|
@ -61,6 +61,10 @@ const messages = defineMessages({
|
|||
defaultMessage: 'Markdown',
|
||||
id: 'compose.content-type.markdown',
|
||||
},
|
||||
bbcode: {
|
||||
defaultMessage: 'BBCode',
|
||||
id: 'compose.content-type.bbcode',
|
||||
},
|
||||
plain: {
|
||||
defaultMessage: 'Plain text',
|
||||
id: 'compose.content-type.plain',
|
||||
|
@ -252,6 +256,11 @@ class ComposerOptions extends ImmutablePureComponent {
|
|||
name: 'text/markdown',
|
||||
text: <FormattedMessage {...messages.markdown} />,
|
||||
},
|
||||
bbcode: {
|
||||
icon: 'bold',
|
||||
name: 'text/bbcode',
|
||||
text: <FormattedMessage {...messages.bbcode} />,
|
||||
},
|
||||
};
|
||||
|
||||
// The result.
|
||||
|
@ -358,6 +367,7 @@ class ComposerOptions extends ImmutablePureComponent {
|
|||
contentTypeItems.plain,
|
||||
contentTypeItems.html,
|
||||
contentTypeItems.markdown,
|
||||
contentTypeItems.bbcode,
|
||||
]}
|
||||
onChange={onChangeContentType}
|
||||
onModalClose={onModalClose}
|
||||
|
|
Loading…
Reference in a new issue