Repository navigation
Add rich text formatting toolbar to Jetchat input - #1727
Open
srikrishnasakunia wants to merge 1 commit into
Open
srikrishnasakunia wants to merge 1 commit into
srikrishnasakunia wants to merge 1 commit into
Conversation
Adds an inline rich-text editor to the message input, toggled from a new text-format button next to the attachment button. - FormattedTextState / SpanStyleState wrap TextFieldState and manage inline styles (bold, italic, underline, strikethrough, large font) via an InlineStyle enum, plus a cycling text color. - Collapsed-selection toggles are held as pending overrides and applied to the next inserted text. - Style coverage is computed as a union of ranges, so overlapping ranges are not double-counted; adjacent same-style ranges are coalesced. - Toolbar and send-button state are derived via derivedStateOf to avoid recomposing on every keystroke. - Draft text and styles survive configuration changes via a Saver that delegates to TextFieldState.Saver. - Sent messages and video captions carry their AnnotatedString; the message formatter remaps span offsets through markdown-lite tokens so styles stay aligned when delimiters are stripped. Signed-off-by: srikrishnasakunia <sakuniacoolkrishna636@gmail.com>
|
Hello, please provide feedback on pull request #1707. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an inline rich-text editor to the message input