django-markdown-editor
django-markdown-editor copied to clipboard
Get something wrong when i type fastin chrome 80 on linux.
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)
By the way,bug don't appear on firefox. Only appear on linux chrome
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