Is there a character limit in the Bubble Rich Text Editor?

I have just over 3500 characters and it is taking 15-20 seconds for my typing to appear. In addition to that, it locks up my site for that time so the user can’t do anything.

Is there a character limit? Or better yet, is there a better RTE I should be using? Which RTE is the one that is used to create forum posts?

Thanks,
Josh

Hello, Josh,

Thanks for the post! No firm character limit on our RTE, but its performance can be degraded for larger texts, which is something that our team is currently working on addressing. We’ll let the community know as soon as those improvements are live!

Thanks for the quick response and update!

I know how difficult it is to make commitments and prioritize new features, but to manage our expectations, is this fix something that we can expect in the short, medium, or long term?

Also, is the RTE used in this forum a completely different RTE than the RTE plugin? Curious because there weren’t any performance issues when I copied and pasted my 3500+ character text into this one.

Thanks,
Josh

Hello, Josh,

The timeline is still taking shape, though it is actively in progress! If you would like to show your support for it, you might upvote it on our Ideaboard, which our product team keeps a close eye on to see which features are most important to our users and influence the roadmap accordingly.

This forum is on Discourse, so could account for the difference there. Let us know if you have any more questions!

I actually dove into this with my team - After reviewing the code and testing, it looks like it’s the BBCode converter that was hanging up on large amounts of text (it’s a big function…understandable though since it has quite a job to do!). Bubble’s trying to make a more user friendly editor by auto-converting formats, from what we could tell. However, it appears to have an effect on the overhead since it has to do converting in real time… and it’s a heck of a function. Works well!! Just a bit slow though w/ larger text.

Some text editors I’ve seen have logical gates for the type of content (Rich Content, Text, HTML) - Like @guarav’s BDK Editor (the gold standard, in my opinion). From what I could tell, this allows for less overhead since if you choose HTML as your type of content, it foregoes the conversions, thus a much faster experience. Less forgiving than Bubble’s though as you have to force the content type… Can’t throw BBCode into HTML. Whereas in Bubbles, you can.

Just my 2 cents on the matter, I am no expert by any means. @hofst038 @jess

2 Likes

Nice sleuthing! Glad to hear this is working well for you now. Appreciate the 2 cents as well; will share that with the team.

Hi @jess any update on this? Thanks. I’m still having issues when the text in editor gets too long. Freezing, vanishing texts - very frustrating for the user when all your work is gone.

Hi Jayy,

Thanks for following up. We have made performance improvements to the Rich Text Editor for loading and editing a very large amount of text, especially in combination with autobinding. If you’re experiencing freezing behavior with the RTE, we’re happy to take a closer look. Please submit a bug report here. Thank you!

1 Like

Hi, @sofia.mezzasalma! I’m currently experiencing issues once the RTE hits around 50,000 characters. I use it in my app to format and tabulate data w/ regex primarily. It works great in small batches, but around that 50k mark I’ve been getting error messages like this and it hampers my other workflows in the sequence from being run:

I submitted a bug report but wanted to know if there was a certain character limit threshold at present.

Bubble RTE uses localStorage? Or do you have some other action using localStorage? What this error message is implying is that localStorage for your app’s domain in this particular browser is full. You need to clear it. If you’ve been messing about with localStorage note that it’s pretty easy to fill up, being about 5 megs (depending on browser, platform, yadda yadda).

1 Like

Thanks for the tip, @keith. Still seeing the same problem, unfortunately. Could it be that the RTE’s value itself > 5MB (in my case, yes, as images are involved) and that’s what’s throwing the error?

Taking a quick look at Bubble’s RTE, I don’t see it using localStorage and it doesn’t seem that quill.js (the text editor library that it uses) using that either, so I can’t really say more about what’s going on here based on what you’ve said (nor can I further explain that error).

There’s no hard limit to what you might put in that editor, but of course there’s a limit to how much memory a single web page can access (which might be as high as 4 Gigs in some cases such as desktop Chrome) and it’s not hard to blow up the browser, particularly on mobile devices.

1 Like