mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.75k stars 139 forks source link

[Suggestion] - A few suggestions to improve dev experience #543

Closed ungureanustefan closed 1 month ago

ungureanustefan commented 1 month ago
petyosi commented 1 month ago

Hey, thanks for your suggestions. I'm afraid that they are too broad or vague for me to understand what you mean. Feel free to fork and modify the project up to your needs. Also, browse the other issues, as I believe most of what you've described has already been discussed.

ungureanustefan commented 1 month ago

Hi @petyosi

Thank you for your prompt answer!

I'll leave more details below just in case they will be considered for a future release:

  1. insertion at cursor position doesn’t follow the style. So if I want to insert a text inside bold markdown, my text will always be inserted in plain text with no styling
image

When I inserted the text, it didn't follow the styling of where I've inserted it.

  1. No straightforward way to extract selection coordinates from the editor. So if I want to open a modal at text selection, I can't find a way to do it. . I want to select a text and open a modal where the text was selected, but I can't find any way of doing so. I would like to be able to do it as follows:
image

I know that the link plugin is doing it, but no idea how.

  1. While the online example styles the text, apparently the editor has to be styled for the headers (h1, h2, h3 etc.) as at the moment the plugin doesn’t change the shape of the text into a header when I try it, it just keeps it as normal text

On live example:

image

On my project:

image
  1. It doesn’t have a text-colour plugin

I'd like to be able to change the colour to the text as in the image, but I'm not sure if there's an existent way (because I couldn't find it), or if a new plugin is needed:

image