diff --git a/packages/client/manifest.json b/packages/client/manifest.json
index 037ceec996..4c3c0faf1f 100644
--- a/packages/client/manifest.json
+++ b/packages/client/manifest.json
@@ -2529,7 +2529,6 @@
"name": "Embedded Map",
"icon": "Location",
"styles": ["size"],
- "editable": true,
"draggable": false,
"illegalChildren": ["section"],
"settings": [
@@ -3631,7 +3630,6 @@
"name": "Markdown Viewer",
"icon": "TaskList",
"styles": ["size"],
- "editable": true,
"settings": [
{
"type": "text",
diff --git a/packages/client/src/components/app/Button.svelte b/packages/client/src/components/app/Button.svelte
index 18bb935edb..7d11ba74bb 100644
--- a/packages/client/src/components/app/Button.svelte
+++ b/packages/client/src/components/app/Button.svelte
@@ -22,41 +22,44 @@
$: componentText = getComponentText(text, $builderStore, $component)
const getComponentText = (text, builderState, componentState) => {
- if (!builderState.inBuilder || componentState.editing) {
+ if (componentState.editing) {
return text || " "
}
return text || componentState.name || "Placeholder text"
}
const updateText = e => {
- builderStore.actions.updateProp("text", e.target.textContent.trim())
+ builderStore.actions.updateProp("text", e.target.textContent)
}
-
+{#key $component.editing}
+
+{/key}