umap-project / umap

uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site.
https://umap-project.org
Other
1.16k stars 220 forks source link

Rich text editor for the description field #1950

Open virgile-dev opened 3 months ago

virgile-dev commented 3 months ago

Is your feature request related to a problem? Please describe. As we are thinking about support for image upload #1849 we need to think about the interface for the users and thus adding a rich text editor to the description field with an image field

Describe the solution you'd like As a user I'd like to have a menu at the top of the field that shows icons to help me format the text for the field (bold, italic, add an image, add a table etc.) Capture d’écran du 2024-06-28 18-01-30 Being able to view the html source might be interesting for users who want to be able to do advance formating. Several open source libraries (ex : https://quilljs.com/) are focused on bringing rich text editor capabilities, we'd have to check which one fits our needs.

Describe alternatives you've considered User currently rely on the umap syntax to format their content and also input html directy in the field.

davidbgk commented 2 months ago

(extracted from internal communication)

davidbgk commented 2 months ago

See also: https://web.archive.org/web/20170703064833/https://romy.tetue.net/barre-outils-edition-raccourcis

yohanboniface commented 2 months ago

Quelques remarques:

yohanboniface commented 2 months ago

Github writer

Je sais pas en termes de codes/légèreté, mais en termes UX, perso, c'est ce genre de truc que je viserais (mais basé sur CKEditor 5, donc potentiellement gazogène)

(Mais là on serait pas un wysiwyg, et donc se pose la question du umapdown™…)

virgile-dev commented 2 months ago

"Paste, drop, or click to add files"

Je n'y avais pas fait attention mais c'est vrai que dans un premier temps ça répond très bien à ma problématique initiale de découvrabilité de la fonctionnalité d'upload d'image

Donc pas nécessairement obligé de lier les deux problématiques ce qui est toujours bien pour éviter de la complexité :clap: