Verified Commit 456a0f06 authored by Haelwenn's avatar Haelwenn

Add BBCode compositing option

parent 560859e9
Pipeline #13923 passed with stage
in 4 minutes and 30 seconds
......@@ -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)
\ No newline at end of file
- 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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment