feat: Copy Paste into chat box retains all formatting #119
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.
Context
As a user
When I paste copied information into the redbox chat box
I want all formatting to be retained
So that I do not have to manually re-add formatting
Acceptance:
When text contains A1, A2, and Bullet Point content and is copied from its originating document and pasted into redbox input box, Redbox should respect that formatting when the user presses enter.
Changes proposed in this pull request
Switching to a div in which supports bullet points instead of a textarea and updating the relevant js/css to ensure functionality and appearance still works as expected.
Guidance to review
Does it work for you?
Relevant links
https://uktrade.atlassian.net/browse/REDBOX-409
Things to check