feat: preview html

This commit is contained in:
Timothy Jaeryang Baek
2025-05-16 21:47:43 +04:00
parent 07b5e84221
commit 54dc24986f
8 changed files with 73 additions and 28 deletions
@@ -29,9 +29,11 @@
export let attributes = {};
export let save = false;
export let preview = false;
export let onUpdate: Function = () => {};
export let onCode: Function = () => {};
export let onPreview: Function = () => {};
export let onTaskClick: Function = () => {};
export let onSourceClick: Function = () => {};
@@ -95,7 +97,9 @@
code={token?.text ?? ''}
{attributes}
{save}
{preview}
{onCode}
{onPreview}
onSave={(value) => {
onUpdate({
raw: token.raw,