Skip to content

Commit

Permalink
Ajoute un bouton pour déclencher une mention
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudMZN committed Sep 18, 2024
1 parent 846c7ce commit 40dc69d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions public/assets/images/icone_mention.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion svelte/lib/mesure/commentaire/CommentaireMesure.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
</script>

<form on:submit|preventDefault={sauvegardeCommentaire}>
<button
type="button"
class="mention-commentaire"
on:click={() => $editor.commands.insertContent('@')}
>
<img
src="/statique/assets/images/icone_mention.svg"
alt="Ajouter une mention"
/>
</button>
<EditorContent editeur={$editor} />
<button type="submit" class="envoi-commentaire">
<img
Expand All @@ -82,7 +92,7 @@
color: #667892;
}
button[type='submit'].envoi-commentaire {
button {
margin: 0;
padding: 8px;
border: none;
Expand Down

0 comments on commit 40dc69d

Please sign in to comment.