CaptainThreepwood
CaptainThreepwood
NNuxt
Created by El Jovial on 7/21/2024 in #❓・help
WYSIWYG or Editor.js/Tiptap renderer
But for good measure the v-html warning:
Security Warning

Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to XSS vulnerabilities. Only use v-html on trusted content and never on user-provided content.
Security Warning

Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to XSS vulnerabilities. Only use v-html on trusted content and never on user-provided content.
9 replies
NNuxt
Created by El Jovial on 7/21/2024 in #❓・help
WYSIWYG or Editor.js/Tiptap renderer
I think what you want is generateHtml from the doc + v-html
9 replies
NNuxt
Created by El Jovial on 7/21/2024 in #❓・help
WYSIWYG or Editor.js/Tiptap renderer
9 replies
NNuxt
Created by Jon 久世 on 6/20/2024 in #❓・help
Computed Property Not Returning offsetHeight
OffsetHeight is not reactive so the computed property will not update when the element size changes. You can use a resize observer to track the changes and update a ref value. When you use that ref value within the computed calculation it would update the computed property. https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver Or you can use https://vueuse.org/core/useElementSize/ which does it for you
3 replies