Add cookies to store editor size and pos and add support for pressing esc to hide the editor