codex-team / codex-team/editor.js

[Bug] Multi-Line paste in custom datatable

Open
#2,005 3 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

I create an Excel/CSV datatable to integrate in EditorJS

![bug paste](https://user-images.githubusercontent.com/49784787/159445632-ccc861d3-6386-4363-a7ba-16dddcf66861.gif)

but when i paste an entire column (or text containing `\n` or `\rn,` i dont have the problem for inline copy containing only `\t`) editorjs creates me as many blocks as I have elements to copy. Is there a way to handle the "paste" event at the editorjs level to only handle the case of my table? I tried to put a condition at the paragraph level, it no longer displays text but the blocks are created. I think I regularly have columns of +1000 rows to copy. If someone has an idea..

i think same problem #1427

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.