Formulaires v1.0.0

Éditeur de texte riche

Un éditeur de texte riche avec contenteditable et barre d'outils pour le formatage du texte. Disponible en styles basique et complet avec différents ensembles d'outils de formatage. Synchronise le contenu vers un champ caché pour la soumission du formulaire.

Basique

Outils de formatage essentiels — gras, italique, souligné, barré, lien et listes

Options

Nom Type Par défaut Description
name * String requis Name attribute for the hidden input (used in form submission)
value String "" Initial HTML content for the editor
placeholder String "Start writing..." Placeholder text shown when editor is empty
autofocus Boolean false Whether to focus the editor on page load
min_height String "200px" Minimum height of the editor area

Complet

Tous les outils basiques plus titres, citation, code, ligne horizontale et insertion d'image

Options

Nom Type Par défaut Description
name * String requis Name attribute for the hidden input (used in form submission)
value String "" Initial HTML content for the editor
placeholder String "Start writing..." Placeholder text shown when editor is empty
autofocus Boolean false Whether to focus the editor on page load
min_height String "200px" Minimum height of the editor area

Journal des modifications v1.0.0

- v1.0.0: Initial release with basic and full styles
- Contenteditable editor with toolbar active state tracking
- Hidden input sync for form submission
- Link and image insertion via prompt dialogs

Obtenir l'accès complet

Débloquez le code source de ce composant et de tous les autres. Paiement unique pour un accès à vie.

Obtenir l'accès maintenant