editor-js / editor-js/simple-image-tutorial

Renders an additional non active input field

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
29
Forks
22
PR merge metrics
No merged PRs in 30d

Description

If editor has no initial input data, then after pressing **enter** in an empty input field there is created an addition not intended input field which does nothing.

### How to reproduce:

1. Delete data object from **new EditorJS** in the example.html
2. In browser, press **tab** twice and then **enter** to create image input field
3. Press **enter** again

Result looks like this:
![Screenshot from 2020-09-26 14-46-19](https://user-images.githubusercontent.com/6852790/94340037-33dfad00-0007-11eb-95bb-e2670d5c3021.png)
But pasting image url into the second field does nothing.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open example.html and reproduce the empty-editor sequence in a browser: press Tab twice, Enter to create the image input, then Enter again. Trace the handling of the additional input field and verify that pressing Enter does not create a non-functional field; pasting an image URL should continue to work in the intended field.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.