delete the old editor div to fix the issue when a user clicks the new button on doc view, it will show the code editor now