question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shifting cursor (forward) when editing Markdown with emoji

See original GitHub issue

When 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”

Screen Shot 2020-10-19 at 10 16 07 AM Screen Shot 2020-10-19 at 10 16 25 AM Screen Shot 2020-10-19 at 10 17 00 AM

How to reproduce the bug

  1. Go to Dashboard, Add Markdown with emoji (e.g. the start shape)
  2. 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
junlincccommented, Oct 21, 2020

@kkucharc 🙏

1reaction
zuzana-vejcommented, Oct 19, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found