I have tested this previously! Unfortunately, it created some weird behaviour, because sometimes even clicking on things can change the HTML (think of when you click between tabs and a new class name gets applied to the active tab) and that change gets baked into the working code. it would be an interesting task to make the editor only update to reflect changes that you type but not changes caused by clicking interactive things. I don't currently have the time to develop that but maybe in the future? (Or maybe even a separate new editor, hmmm)