GenericJsxEditor help! #629
skullicious
started this conversation in
General
Replies: 1 comment
-
The flow I understood when I opened the source code and checked is as follows. We found that the GenericJsxEditor failed to get ReactNode, identified only the variables needed for text conversion, and then converted it to text when running ref.current.getMarkdown(). That's why we had to modify the source code to handle the actual node rendering. The following link is how I solved it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, wondering if you can point me in the right direction.
I've got a really simple use case to start with, I'm trying to port over my existing MDX-JS functionality to MDXEditor as the inline editing is brilliant.
I've gone though the jsx docs at https://mdxeditor.dev/editor/docs/jsx as well and pulled some of the github repo's but I'm unable to get to where I need to be and I'm not sure what I'm missing.
I'm trying to use the GenericJsxEditor in conjunction with some very simple JSX components (for example a branded header with a text/children input).
It seems to be that I am not able to import the element to then render it (I receive no error and the editor is visible (a generic element renders in it's place).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions