Replies: 2 comments 3 replies
-
I might be missing something, but isn't the setMarkdown method going to work for you? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I just raised PR #256 to implement this feature :) |
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
-
Use case
I want to implement an AI write feature on top of MDXEditor I'm wondering if we can support inserting or appending Markdown content at the current cursor and the editor will re-render after each AI write?
Current Idea
I have implemented the floating toolbar and one button is "Continue with AI", when user clicks this Continue with AI button, I will call a backend API to generate Markdown content, the markdown content will be append to the current cursor. I have looked into the lexicaljs Autocomplete demo looks like that will be only useful for plain text.
Help wanted
Can you help guide me on what API or plugin I can use to programmatically insert or append markdown content in MDXEditor?
Beta Was this translation helpful? Give feedback.
All reactions