Fix context links when there are spans present in region. Fixes bug 937710
Merge fix for span-inside-anchor context menus. Close #211.