Make contentEditable=true elements react properly to LinkHints

This fixes #1136.