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

Renders an additional non active input field

未关闭
#3 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
29
派生
22
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

打开 example.html,并在浏览器中重现空编辑器的操作序列:按两次 Tab,按 Enter 创建图像输入,然后再次按 Enter。跟踪附加输入字段的处理,并验证按 Enter 不会创建无效字段;粘贴图像 URL 应继续在预期字段中正常工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。