diff --git a/playground/src/components/Editor.vue b/playground/src/components/Editor.vue index 8abfd3dcbd..a7c33f7809 100644 --- a/playground/src/components/Editor.vue +++ b/playground/src/components/Editor.vue @@ -33,6 +33,14 @@ const panelSizes = useLocalStorage( { listenToStorageChanges: false }, ) +function handleReset() { + // eslint-disable-next-line no-alert + if (confirm('Reset all settings? It can NOT be undone.')) { + inputHTML.value = defaultHTML + customConfigRaw.value = defaultConfigRaw + } +} + function handleResize(event: ({ size: number })[]) { panelSizes.value = event.map(({ size }) => size) } @@ -121,24 +129,30 @@ onMounted(() => {
+