Shifting cursor (forward) when editing Markdown with emoji
See original GitHub issueWhen editing a markdown component with a specific emoji (which occupies two characters) - for example the start emoji which is by default on the markdown component, clicking on text places the cursor one character to the right and making editing confusing.
Expected results
Cursor stays at correct position
Actual results
Cursor jumps 1 step forward
Screenshots
It’s hard without video, but here are few screenshots (I can share video if needed). In this example I am trying to correct “payouss” to “payouts”
How to reproduce the bug
- Go to Dashboard, Add Markdown with emoji (e.g. the start shape)
- Try to edit a sentences (after the emoji) and see the cursor jumps around (deletes character forward, not correct one)
Environment
- superset version:
master
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Shifting cursor (forward) when editing Markdown with emoji
Go to Dashboard, Add Markdown with emoji (e.g. the start shape) · Try to edit a sentences (after the emoji) and see the...
Read more >Emoji in the editor! 🍾 🙌 🎉. Last week I ... - medium.engineering
We already implicitly allow emoji in the editor. ... both look for a colon preceding the cursor, with no spaces or punctuation in...
Read more >Handbook Markdown Guide - GitLab
This method works for YouTube videos and any other embed video within an <iframe> tag. Copy the code below and paste it into...
Read more >Keyboard shortcuts – Notion Help Center
Press cmd/ctrl + / to edit or change one or more selected blocks. Use this shortcut to change the type of block, the...
Read more >Editor - .NET MAUI - Microsoft Learn
The .NET MAUI Editor allows you to enter and edit multiple lines of text.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kkucharc 🙏
@junlincc FYI. I know there are other two open bugs for markdown https://github.com/apache/incubator-superset/issues/11304 and https://github.com/apache/incubator-superset/issues/11257 they are all different, just wanted to surface this as it relates to the same component.