Please, move the comments about the current hacks/workarounds and codemirror limitations to the method doc and add a TODO there as well so to remember that we want to come back to review this at some point