Fix content editable (use window.getSelection, not whole text)