Upgrade CKEditor and refactor configuration with use of typescript

This commit is contained in:
2024-05-31 21:32:39 +02:00
parent 4b07fe3622
commit dcfa569e3a
12 changed files with 39 additions and 35 deletions

View File

@@ -15,7 +15,7 @@ const personMessages = {
person: {
firstname: "Prénom",
lastname: "Nom",
born: (ctx) => {
born: (ctx: {gender: "man"|"woman"|"unknown"}) => {
if (ctx.gender === 'man') {
return 'Né le';
} else if (ctx.gender === 'woman') {