Hello beta testers. So today we pushed some code live that we hope fixes two quite small but annoying bugs that were happening to quite a few of you. I have found it hard to replicate them because they happen only on some devices and operating systems (and the windows license key nature of Novlr being just Thomas and I means we don’t have all of these to test on!) however, I think I know where they were coming from (more on that in a bit) and so am hoping this resolves it. The two bugs are:
Scrolling back up the page when typing
Windows predominantly. Reported only from IE
When typing, once the length of the chapter extended down the height of the device, every save would skip you back to the top of the editor.
Pasting from word adds additional line breaks
WIndows and Mac. Various version of Microsoft word. Multiple browsers.
Pasting text in from Microsoft word would add additional line breaks half way through sentences.
What do we need from you?
If you were having trouble with either of these bugs, it would be a huge, and I can’t overestimate how huge, help to us if you would see if it is still happening and let us know if it is or not. You can do this by tweeting us @novlrtweets or email firstname.lastname@example.org.
How did you fix it?
Firstly, I don’t know for sure that it is, as I say because I had trouble replicating it, I’m hoping you will tell us for sure! However, I believe that both of these bugs were as a result of the editor library we use, Quill, requiring the editable part of the page to be in an iframe. This adds many complications – it’s a bit like having a webpage inside of a webpage. The latest version of Quill was a big re-write and dropped this entirely which makes it 1. much easier to develop and 2. much easier to debug inflatable bouncers!