-
DescriptionThe library has the node.setAttribute("data-blok-c", options["data-blok-c"]);
node.setAttribute("data-blok-uid", options["data-blok-uid"]);
node.classList.add("storyblok__outline");to the HTML element. If the person wants to use a custom UI library, <script lang="ts">
import { storyblokEditable } from '@storyblok/svelte';
import { Button } from 'my-reusable-ui-library';
export let block;
</script>
<Button use:storyblokEditable={blok} title={blok.title}/>Is there a workaround for this, or another way to implement it on custom components? Additional contextNo response Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
Hi @abranhe, Thank you for your message and sorry for the delay. We will get back to you shortly. |
Beta Was this translation helpful? Give feedback.
-
|
My workaround is using a wrapper div |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for sharing @HalCodes! |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
My workaround is using a wrapper div