The console will report an error when the selected text is input outside the editor

Hello! Thank you very much for providing such an excellent editor!

When inputting text in the editor, sometimes a paragraph of text will be deleted and rewritten. At this time, we will select the text. When we long press the mouse to select the text outside the editor, and do not release the mouse selection button, then input the content, and then slide the mouse, the console will always report errors. However, this error did not affect the operation of the editor. If this problem is controllable, I think it should not be serious

Here is a GIF picture I recorded

Thanks for catching that—the code handled this in theory, but I hadn’t actually tested it, and there was a piece missing. This patch implements it properly.

OK, thank you for your help。