prosemirror: creating code block with textblockTypeInputRule throws an error
Issue details
After creating a code block with textblockTypeInputRule
an error is thrown.
Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent.
Steps to reproduce
- go to the example editor on https://prosemirror.net/
- type three backticks (```)
- a code block will be created
- type any character
- an error will be thrown
ProseMirror version
latest
Affected platforms
- Chrome
- Firefox
- Internet Explorer
- Other
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22 (8 by maintainers)
I’ll give it a try on a Mac machine (but I don’t have one handy right now)