feat: back and save

This commit is contained in:
Edwin Wong
2023-09-30 01:43:19 +08:00
parent cada51a729
commit 3ee3714664
+8 -1
View File
@@ -14,6 +14,13 @@ export function ShapeFlowEditor() {
(showEditor.val ? "" : "hidden"),
onclick: () => {
console.log("close");
const editor = document.getElementById("avatech-editor-iframe");
editor.contentWindow.postMessage(
{
method: "back",
},
"*"
);
showEditor.val = false;
},
},
@@ -22,7 +29,7 @@ export function ShapeFlowEditor() {
"data-icon": "ic:baseline-arrow-back",
"data-inline": "false",
}),
div("Back")
div("Back & Save")
),
iframe({
id: "avatech-editor-iframe",