editor-js / editor-js/embed

Suggestion to Document pasted URL Length Limitation

Open
#135 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
159
Forks
105
PR merge metrics
No merged PRs in 30d

Description

Hello,

First and foremost, I would like to express my gratitude for this highly beneficial tool. However, I have observed a need for enhancement in the documentation concerning the maximum length of pasted URLs.

Currently, a URL with 449 characters works correctly:

```
https://youtu.be/TVLURx2nFqw?si=sYIh2pGe5cTrWM0f&t=168&dummy=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

However, a URL with 450 characters does not work:

```
https://youtu.be/TVLURx2nFqw?si=sYIh2pGe5cTrWM0f&t=168&dummy=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

Upon examining the Editor.js code, it seems there is a limitation at 450 characters:

```javascript
/** If string`s length is greater than this number we don't check paste patterns */
```

[Link to the source code](https://github.com/codex-team/editor.js/blob/631340912e7a1b3db1e114e930ddf1e97ec4ea61/src/components/modules/paste.ts#L113)

We have a service to integrate for visualizing maps, and the URLs can include numerous parameters (filters, spatial extent, etc.) that might exceed this limit.

I could develop a new block for this map service, but I'm concerned about the user experience, where some services integrate with a simple copy-paste, while others require a dedicated block.

Do you have a solution to work around this limitation?

Best regards,

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.