You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please don't try to custom basic node such as text and paragraph node for now. It will cause unexpected behavior. It's a know issue but it's a kind of trade off. I'll update the document later.
After reconsidering this issue, I think it's still important for users to do this. I'm working on a new repo called prosemirror-adapter and I'll solve this issue there. After that, milkdown will use the adpater to render react and vue components.
Initial checklist
Affected packages and versions
6.3.2
Link to runnable example
https://codesandbox.io/s/ecstatic-fermat-p87923?file=/src/App.js
Steps to reproduce
Follow the Custom Component for Node guide from docs:
Expected behavior
We should be able to type in editor and edit as normal. Pressing enter after typing some words should go to the next line.
Actual behavior
Type some words and press enter. The cursor stays on the same line.
New
CustomParagraph
components are being created but the focus stays on the current component.Runtime
Firefox, Electron
OS
Windows
Build and bundle tools
Create React App
The text was updated successfully, but these errors were encountered: