django-markdown-editor icon indicating copy to clipboard operation
django-markdown-editor copied to clipboard

Get something wrong when i type fastin chrome 80 on linux.

Open bloodnighttw opened this issue 5 years ago • 2 comments

https://www.youtube.com/watch?v=fihcGc6_Yzs&feature=youtu.be When i type 15 'n' fast,it will show more than 15 'n' or some space and can't del. (Sorry about my bad english)

bloodnighttw avatar Feb 28 '20 09:02 bloodnighttw

By the way,bug don't appear on firefox. Only appear on linux chrome

bloodnighttw avatar Feb 28 '20 09:02 bloodnighttw

This is a bug caused by the excessive hammering on the /markdownify URL. It is worse in Chrome, but it exists in Chrome and FF. We are working on a fix for this that will set a timer when the first keystroke goes down. When that timer expires, the buffer of text will be sent for /markdownify. This will allow us to do more of a batch update than a character by character dispatch to the server.

Easy way to see this is use the Martor field in the admin and type a long sentence (manually, not copy/paste)

If you watch the network requests while you do this you will see on chrome they will be "delayed" by chrome and not by firefox.

Our proposed solution is to introduce a configurable timer that will allow the control to be responsive but less spammy

boatcoder avatar Aug 21 '23 21:08 boatcoder