codex-team / codex-team/editor.js

Empty output if the content is only a single emoji

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

Description

If you use only a single emoji like 😊 for example in a block, you get an empty output. Works if you put 2 emojis, emoji with any text etc.

Example:
`[{"id": "9JhBKY4A83", "data": {"text": ""}, "type": "paragraph"}]`

Steps to reproduce:
1. Paste and save any single emoji input into a block.
2. Save and output the blocks from EditorJS
3. Look at results

Expected behavior:
Output the emoji in the block data.

Editor.js version:
2.29.1

Plugins you use with their versions:
- Paragraph
- Header
- Image
- The core ones from the editorJS team

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.