New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add md editor #351
Feat/add md editor #351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Doesn't seem easy to integrate with these libs.
...ront/theme/gouvfr/assets/js/components/MarkdownEditor/Milkdown/TableTooltip/TableTooltip.vue
Outdated
Show resolved
Hide resolved
udata_front/theme/gouvfr/assets/js/components/MarkdownEditor/ImageModal/ImageModal.vue
Outdated
Show resolved
Hide resolved
udata_front/theme/gouvfr/assets/js/components/MarkdownEditor/InternalEditor.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow! Indeed, it's quite a lot of work to integrate with the libs.
I haven't dived in all the files, but it seems to work nicely already, thank you! 🚀
As a suggestion, it may be nice, later on, to add a raw
mode to edit markdown without the rendering (for geeky users).
udata_front/theme/gouvfr/assets/js/components/MarkdownEditor/ImageModal/ImageModal.vue
Outdated
Show resolved
Hide resolved
...ront/theme/gouvfr/assets/js/components/MarkdownEditor/Milkdown/LinkPreview/useLinkPreview.ts
Show resolved
Hide resolved
…mageModal/ImageModal.vue Co-authored-by: maudetes <maudet.estelle@gmail.com>
I agree, we could add a "plain text" option with a simple textarea |
* feat: ✨ add markdown editor component * feat(markdown-editor): ✨ handle table in markdown editor * feat: ✨ add edit tooltip * feat(markdown-editor): ✨ handle link edit * feat(markdown-editor): ✨ add image modal --------- Co-authored-by: maudetes <maudet.estelle@gmail.com>
@nicolaskempf57 ça serait possible de l'avoir dans @etalab/data.gouv.fr-components ? |
@streino Complètement ! Il faut qu'on termine datagouv/data.gouv.fr#1265 avant pour avoir des releases propres du package NPM avec changelog notamment et qu'on refasse un viewer markdown (fait initialement dans #337) avec le même parser. |
Close datagouv/data.gouv.fr#1194