jpuri / jpuri/html-to-draftjs

Error: Unknown DraftEntity key.

Open
#31 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
163
Forks
104
PR merge metrics
No merged PRs in 30d

Description

I use shift+enter inside a code block to add a line... it works fine.

Then I go to the beginning of the code block and do the same thing and BOOM, it blows up.

GitHub doesn't let me upload an mp4, so I zipped and attached a zipped mp4 of the sequence of events.

Thoughts on how to fix?

2017-09-21_12-54-50.mp4.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sequence from the issue: use Shift+Enter inside a code block, then repeat it at the beginning, and compare the result with the attached video. Trace the DraftEntity error from that interaction; done means the sequence no longer crashes and still adds the expected line.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.