[ZD-2703623] deleting space after @mention cursor jump #7
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
This pull request fixes the cursor jumping problem when using
@mention
inside the content editor inzendesk_console
. Whenever we use emoji and the mention functionality, theAt.j
library inserts aspan
with the attributecontenteditable=false
while our content editor (see.zendesk-editor--rich-text-comment
) has the attributecontenteditable=true
. Right now, this kind of nesting is buggy and will cause weird behavior.cc @zendesk/sustaining @zendesk/harrier
Please see these PR's for reference:
Pull request that introduced the bug:
ichord#423
Pull requests looking to reverse or have already been reversed:
ichord#463
CenterForOpenScience#3
Description
Zendesk Support Ticket 2703623
Steps to reproduce:
/agent/tickets/<ticket-number>
Before
Google Chrome
Safari
After
Google Chrome
Safari
Todo
zendesk_console
to update thepackage.json
Risks
Low: the change just removes an attribute in html which the library doesn't use and adds \u200D as hack for the cursor positioning.