-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
React Syntax highlighting - Cannot read property 'nodeType' of null #1520
Comments
The StarterKit comes with a CodeBlock extension already, disable it like this: StarterKit({ codeBlock: false }) Does that help? |
I tried the above code as is but it failed tried the second time extensions: [
StarterKit.configure({
codeBlock: false,
}),
...
] But the same error occurs. This time I tried it without StarterKit. |
Oh sorry, it’s StarterKit.configure({ codeBlock: false }) |
I did that and it didn't work... If you check the codesandbox link above, I tried doing that, but an error occurs. And I tried it except StarterKit and got the same error. |
Thanks for the report. That’s definitely an issue, we’ll look into that. Any help is appreciated. |
I have to reopen this because this fix caused another issue. I need to find another solution. |
…, fix ueberdosis#1608, fix ueberdosis#1520 * remove async createNodeViews * focus asynchronously to fix weird bugs in react
Description
I implemented the vue example in https://www.tiptap.dev/examples/syntax-highlighting in react. However, if you create a code block on a new line, an error occurs.
Steps to reproduce the bug
Steps to reproduce the behavior:
CodeSandbox
I created a CodeSandbox to help you debug the issue:
Environment?
Additional context
If I create a CodeBlock in a new line, an error occurs, and when I create a CodeBlock after dragging the text, no error occurs.
The text was updated successfully, but these errors were encountered: