handle the fact that editable divs may contain other elements