Feature Request: onContentError()
works for setContent()
#6303
oscarlevin
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
As far as I can tell, using tiptap-react 2.11.5, the
onContentError
works correctly when there is invalid HTML set as the initial content, but not when it is set usingsetContent()
. I might be missing something, but it would be really helpful to be able to use this callback in both cases. Note that thesetContent()
does respect theenableContentCheck
correctly, but I just get an uncaught error in the console.Use Case
I'm working on a VS Code extension that would allow visual editing of XML documents. I suspect it will be quite common for the text editor to send invalid source to the visual editor.
Type
Other
Beta Was this translation helpful? Give feedback.
All reactions