codex-team / codex-team/editor.js

iOS: "return" does not create a new block on the first block

Open
#2,415 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

On iOS, when we start from an empty editor instance, type some text, then type "return", it inserts a new line in the same block instead of creating a new text block.

**Steps to reproduce:**
1. Open your online demo https://editorjs.io/ from an iPhone (I tried Safari 16.5 from browserstack)
2. Focus (you may need to tap 3 times), type some text, then tap "return"
3. The new line is on the same block.

Note: if you continue playing, remove some blocks and try again, it will create a new block. You only get the above behavior when starting from a fresh, empty editor instance.

**Expected behavior:** Create a new block instead of a new line in the same block.

**Screenshots:**

image

image

**Device, Browser, OS:** iPhone 14, Safari 16.5 (browserstack)

**Editor.js version:** 2.27.2

**Plugins you use with their versions:** Online demo as well as my own EditorJS.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.