Open abranhe opened 8 months ago
Hi @abranhe, Thank you for your message and sorry for the delay. We will get back to you shortly.
My workaround is using a wrapper div
<div use:storyblokEditable={blok}>
<Button title={blok.title}/>
</div>
Thanks for sharing @HalCodes!
Hi @abranhe , I see your question here, I just had the same problem with another framework (not Svelte, but the concept is the same), I solved it as shown by @HalCodes (super!), putting a div wrapper. The problem here is that the custom component provided by the library doesn't pass and render in the HTML element the extra parameters.
Description
The library has the
storyblokEditable
action which allow the component to be used in the visual editor by adding this:to the HTML element.
If the person wants to use a custom UI library,
storyblokEditable
won't work because actions cannot be used on components. There for something like this won't work:Is there a workaround for this, or another way to implement it on custom components?
Additional context
No response
Validations