Trumbowyg: Super slow performance with lots of text or base64 inline image

Created on 5 Sep 2016  ·  5Comments  ·  Source: Alex-D/Trumbowyg

When you have a lot of text in your editor or a base64 inline image, it takes more than 1 second for text to appear after typing. The cause for this is the semanticCode function which gets executed on every keyup event.

My suggestion is to set and reset a timeout on typing, and then execute the semanticCode function when the user is actually done typing.

enhancement request

Most helpful comment

@Nazkter Yes. What I made is modify the css on the rule .trumbowyg-box.trumbowyg-editor-visible .trumbowyg-textarea and inside the rule i added the line diplay:none;

All 5 comments

More important, it also happens on empty textarea with Chrome android (chrome is partially faulty, it sends a lot of events for one stroke).

I had the same issue. It can be solved by just putting display: none; on the textarea element.

@lerzenit I'm having the same issue, but your suggestion did not solve my problem. I am putting display:none; on the textarea that has the class "trumbowyg-textarea", is that textarea?

@Nazkter Yes. What I made is modify the css on the rule .trumbowyg-box.trumbowyg-editor-visible .trumbowyg-textarea and inside the rule i added the line diplay:none;

If you hide textarea, HTML5 validation cannot works. That's why I did not hide it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dohomi picture dohomi  ·  5Comments

mur-wtag picture mur-wtag  ·  3Comments

karovska picture karovska  ·  5Comments

Jeong-YeongMin picture Jeong-YeongMin  ·  5Comments

dmorrison-olive picture dmorrison-olive  ·  3Comments