Fix selection delete contents not keeping editor containment
Improve uneditable container detection before caret and deletion processes