Current Functionality
Message Draft Component
The message draft is a textbox component that supports Markdown and suggestions. It can be enabled on public or private channels and DMs, or disabled in archived or read-only channels. It renders the file attachment and emoji picker trigger buttons. It stores the drafted message in Local Storage. The textbox is rendered in main channel, RHS and edit post modal.
Supported markdown options
Bold
Italic
Strikethrough
Links
Internal links
Code formatting
Quote
Bulleted Lists
Numbered Lists
Emojis
Currently these options and their controls are displayed to the user as a hint below the post textbox. The users will need to manually type these controls. Preview is available when the “Show markdown preview option in message input box” setting from Account Settings > Advanced > Preview Pre-release Features is enabled. This setting will be deprecated when the Advanced Text Editor feature is released.
Shortcuts
The following shortcuts are currently implemented.
Format | Mac | Windows |
---|---|---|
Bold | ⌘ B | Ctrl B |
Italic | ⌘ I | Ctrl I |
File attachment
Users can attach files directly into their post by clicking on the file attachment button. They have the option to select a file from their computer, or create an inline drawing or text via the Drawing modal.
Emoji picker
The emoji picker button is also rendered within the textbox. It is also shown in the edit text modal.
Responsiveness
The textbox supports responsive styling and is available in mobile, tablet and desktop view.
Internal links
Internal links to a different channel or a post are reformatted, for channels it would display the channel name, for permalinks to posts it would transform to <jump to convo>