Limiting document size #2467
GuiLeme
started this conversation in
Ideas & Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
This is not an immediate bug, but rather a potential limitation that could lead to abuse scenarios.
Since BlockNote runs entirely on the front-end, a malicious user could paste a very large block of text (for example, 3MB of plain text) multiple times into the editor. In collaborative scenarios, this could
result in:
Even in non-collaborative scenarios, extremely large documents can negatively impact rendering performance and responsiveness.
Currently, there does not appear to be a built-in mechanism to limit the maximum document size. (As far as my research went)
Proposed Solution
It would be helpful if BlockNote provided a configurable maximum
document size option.
For example:
If the document exceeds this limit, BlockNote could:
Since BlockNote is a front-end editor, this kind of safeguard would primarily serve as a client-side protection mechanism. Server-side validation would still be the responsibility of the backend.
Additional Context
I am currently integrating BlockNote with BigBlueButton as a real-time collaboration tool and evaluating potential abuse scenarios involving very large document payloads. A configurable document size limit would help mitigate these risks at the editor level. The integration PR is here in case you need to check on anything.
Beta Was this translation helpful? Give feedback.
All reactions