When the `rez_perform_edit` is called it first calls nicEditor's `.saveContent()` and saves contents to the textarea. Then `window.orginalPageContent` is updated with new content in textarea.