editor ui: functionality of removing element while keeping its content