CaptainThreepwood
WYSIWYG or Editor.js/Tiptap renderer
Have a look here:
https://tiptap.dev/docs/editor/api/utilities/html
9 replies
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