From e20a8f8058dde1d5ea76829f9acd904da00de1dc Mon Sep 17 00:00:00 2001 From: Jarkko Saltiola Date: Thu, 6 Jul 2023 13:36:28 +0300 Subject: [PATCH] Workaround for block registration (issue #1) https://github.com/svandragt/htmxpress-serverside-block/issues/1 --- src/edit.js | 2 +- src/index.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/edit.js b/src/edit.js index 9095de5..7db37e5 100644 --- a/src/edit.js +++ b/src/edit.js @@ -34,7 +34,7 @@ export default function Edit() {
); diff --git a/src/index.js b/src/index.js index d676583..91c5546 100644 --- a/src/index.js +++ b/src/index.js @@ -30,5 +30,8 @@ registerBlockType(metadata.name, { * @see ./edit.js */ edit: Edit, - save: null + save: ({ attributes }) => { + return
{ attributes.content }
; + } + });