feat: add data attribute on ReactNodeViewContent div (#5539)

This commit is contained in:
William Park 2024-08-23 08:28:52 +01:00 committed by GitHub
parent 88e310b144
commit fafb5adc98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,6 +125,7 @@ export class ReactNodeView<
}
if (this.contentDOMElement) {
this.contentDOMElement.dataset.nodeViewContentReact = ''
// For some reason the whiteSpace prop is not inherited properly in Chrome and Safari
// With this fix it seems to work fine
// See: https://github.com/ueberdosis/tiptap/issues/1197