editor: fixing invalid new node construction in ctrl+enter handler