Added template previewing with non-functional GQL editor BOD-126

This commit is contained in:
Patrick Fic
2020-09-03 16:14:30 -07:00
parent f4fed87f61
commit 051be83303
16 changed files with 50580 additions and 40 deletions

View File

@@ -55,3 +55,19 @@ export const displayTemplateInWindow = (html) => {
console.log("Unable to write to new window.", error);
}
};
export const displayTemplateInWindowNoprint = (html) => {
try {
var newWin = window.open("", "_blank", "toolbar=0,location=0,menubar=0");
newWin.document.write(html);
setTimeout(function () {
newWin.document.close();
newWin.focus();
//newWin.print();
//newWin.close();
}, 500);
} catch (error) {
console.log("Unable to write to new window.", error);
}
};