How to place the cursor (folded range) inside an empty node element. This code should work, but it does not.
node = document.getElementById('some-empty-strong-node') range = document.createRange() range.selectNodeContents(node) window.getSelection().addRange(range)
Try other tricks, such as adding empty node text inside the node element or setting the start of the range inside the node and the end of the range elsewhere, and then flattening the range also doesn't work. Does Anoion have an idea?
source share