GET NEWS LETTER CODE
Process
getCodeBtn calls newsletterGetCode().
newsletterGetCode() calls SaveDraft().
SaveDraft() passes through "indexMaster.php" on way to "saveNewsletterCode.php".
saveNewsletterCode.php does the following:
Is passed content from edit window.
Brings in current draft file (/editor/drafts/'.[file ID].php') for the non-editable areas of the file.
Brings in /UDP-custom/newsletters/'.[file ID].css for the css of the newsletter.
Brings in the custom (or custom master) parsing file "UDP-custom/newsletters/_newsletterMasterParse.php".
Parses the css code into variables.
Parses the content code into variables.
Creates the opening and closing code.
Builds the page
Saves the page to "/editor/preview/getCode.php".
On Complete calls "onNewsletterCodeSaved()"
"onNewsletterCodeSaved()" sets the iframe content to: "/editor/preview/getCode.php".