Text selection handler should work with single node selection