-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class not being applied on StoryblokRichText component #801
Comments
hI @martinarcejoviva which version of the SDK are you using? |
Hi, we're using this:
|
I am having a similar issue but with My issue here is that not even the "class" or "style" attribute is added. I copy and pasted in 5 |
Hi @adamleemiller @martinarcejoviva do you have a reproduction I can take a look? Maybe a stackblitz demo. I'm not able to |
Have a look here https://stackblitz.com/edit/vitejs-vite-wakyq3yz - This is a very simple implementation. If you inspect the first and second paragraph, they have an added Again, this is using |
Hi @adamleemiller thanks for providing a reproduction, tho I wasn't able to run it. It remains in the loading component for a while with a 404 on the console The issue was fixed after 8.1.4, so I suggest updating to the last one |
@alvarosabu I am not sure why that stackblitz does not work because it did the other night when I put it together. If you still need it, let me know and I will do my best to recreate it or fix this one. |
Describe the issue you're facing
On a Nuxt project I want to use the StoryblokRichText component and apply a css class.
I get this:
<span style="class: myBeautifulClass">Hello</span>
but I want to get this:
<span class="myBeautifulClass">Hello</span>
Is it possible to get this out of the box or is it necessary to write a custom resolver for this?
Reproduction
See below
Steps to reproduce
Add the following component on a Nuxt page:
On the browser, this is the generated HTML:
System Info
Used Package Manager
yarn
Error logs (Optional)
N/A
Validations
The text was updated successfully, but these errors were encountered: