@bigbinary/neeto-editor 1.47.21 → 1.47.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Attachments.js +2 -2
- package/dist/Editor.js +4 -4
- package/dist/EditorContent.js +44 -3
- package/dist/EditorContent.js.map +1 -1
- package/dist/FormikEditor.js +3 -3
- package/dist/Menu.js +2 -2
- package/dist/{chunk-DadYJ-PV.js → chunk-B6KCbUFU.js} +2 -2
- package/dist/{chunk-DadYJ-PV.js.map → chunk-B6KCbUFU.js.map} +1 -1
- package/dist/{chunk-DYM9eRpO.js → chunk-CeSjhXdK.js} +2 -2
- package/dist/chunk-CeSjhXdK.js.map +1 -0
- package/dist/{chunk-BEeeOUkk.js → chunk-DjSBDQrg.js} +4 -4
- package/dist/{chunk-BEeeOUkk.js.map → chunk-DjSBDQrg.js.map} +1 -1
- package/dist/{chunk-DQ79U6Nk.js → chunk-nbKzeQKk.js} +3 -3
- package/dist/{chunk-DQ79U6Nk.js.map → chunk-nbKzeQKk.js.map} +1 -1
- package/dist/cjs/Attachments.cjs.js +2 -2
- package/dist/cjs/Editor.cjs.js +4 -4
- package/dist/cjs/EditorContent.cjs.js +44 -3
- package/dist/cjs/EditorContent.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +3 -3
- package/dist/cjs/Menu.cjs.js +2 -2
- package/dist/cjs/{chunk-DnB9pylb.cjs.js → chunk-DSaxcx8P.cjs.js} +2 -2
- package/dist/cjs/chunk-DSaxcx8P.cjs.js.map +1 -0
- package/dist/cjs/{chunk-BhbvTo3M.cjs.js → chunk-DxaBuuRc.cjs.js} +4 -4
- package/dist/cjs/{chunk-BhbvTo3M.cjs.js.map → chunk-DxaBuuRc.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-YXkG7ItH.cjs.js → chunk-opVAdEEy.cjs.js} +3 -3
- package/dist/cjs/{chunk-YXkG7ItH.cjs.js.map → chunk-opVAdEEy.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-BfTHT2yg.cjs.js → chunk-wS3Tinbh.cjs.js} +2 -2
- package/dist/cjs/{chunk-BfTHT2yg.cjs.js.map → chunk-wS3Tinbh.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/editor-content.min.css +1 -1
- package/dist/editor-output-pdf-email.css +1 -1
- package/dist/editor-output.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/src/translations/de.json +176 -0
- package/src/translations/en.json +1 -1
- package/src/translations/es.json +176 -0
- package/src/translations/fr.json +176 -0
- package/types.d.ts +11 -7
- package/dist/chunk-DYM9eRpO.js.map +0 -1
- package/dist/cjs/chunk-DnB9pylb.cjs.js.map +0 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
{
|
|
2
|
+
"neetoEditor": {
|
|
3
|
+
"common": {
|
|
4
|
+
"create": "Crear",
|
|
5
|
+
"download": "Descargar",
|
|
6
|
+
"embed": "Incrustar",
|
|
7
|
+
"unlink": "Desvincular",
|
|
8
|
+
"videoUrl": "URL del video:",
|
|
9
|
+
"reset": "Restablecer",
|
|
10
|
+
"auto": "Automático",
|
|
11
|
+
"edit": "Editar",
|
|
12
|
+
"cancel": "Cancelar",
|
|
13
|
+
"text": "Texto",
|
|
14
|
+
"done": "Hecho",
|
|
15
|
+
"url": "Enlace",
|
|
16
|
+
"editLink": "Editar enlace",
|
|
17
|
+
"resetToDefault": "Restablecer a los valores predeterminados",
|
|
18
|
+
"openInNewTab": "Abrir en una nueva pestaña"
|
|
19
|
+
},
|
|
20
|
+
"attachments": {
|
|
21
|
+
"actionsBlocked": "No tiene permiso para actualizar o eliminar archivos adjuntos",
|
|
22
|
+
"add": "Agregar archivo adjunto",
|
|
23
|
+
"deleteConfirmation": "Está eliminando permanentemente el archivo adjunto <strong>{{entity}}</strong>. Esto no se puede deshacer.",
|
|
24
|
+
"deleteTitle": "¿Eliminar archivo adjunto?",
|
|
25
|
+
"maxNumberOfFiles": "Solo puede adjuntar {{entity}} archivos",
|
|
26
|
+
"nameEmpty": "El nombre del archivo no puede estar vacío",
|
|
27
|
+
"noPreview": "No hay vista previa disponible, haga clic para <span>descargar</span>.",
|
|
28
|
+
"oneAttachmentAllowed": "Solo se permite un archivo adjunto",
|
|
29
|
+
"uploading": "Subiendo"
|
|
30
|
+
},
|
|
31
|
+
"error": {
|
|
32
|
+
"invalidUrl": "Por favor, ingrese una URL válida",
|
|
33
|
+
"invalidEmbedUrl": "Fuentes soportadas: NeetoRecord, YouTube, Vimeo, Loom, Supademo.",
|
|
34
|
+
"cannotAddFiles": "No se pueden agregar archivos",
|
|
35
|
+
"onBeforeFileAddedReturn": "No se puede agregar el archivo porque onBeforeFileAdded devolvió falso.",
|
|
36
|
+
"fileIsTooLarge": "El tamaño del archivo es demasiado grande. El tamaño máximo es {{maxFileSize, anyCase}}.",
|
|
37
|
+
"imageSizeIsShouldBeLess": "El tamaño de la imagen debe ser menor de {{limit}} MB",
|
|
38
|
+
"urlRequired": "URL es requerida",
|
|
39
|
+
"textRequired": "Se requiere texto",
|
|
40
|
+
"uploadFileFailed": "Falló la carga de un archivo adjunto",
|
|
41
|
+
"fileNotAllowed": "El tipo de archivo seleccionado no está permitido",
|
|
42
|
+
"noResults": "Sin resultados",
|
|
43
|
+
"imageUploadFailed": "La carga de la imagen falló, ¡por favor intente de nuevo!"
|
|
44
|
+
},
|
|
45
|
+
"menu": {
|
|
46
|
+
"attachments": "Archivos adjuntos",
|
|
47
|
+
"attachmentsDescription": "Agregue archivos como archivos adjuntos.",
|
|
48
|
+
"file": "Archivo",
|
|
49
|
+
"blockQuote": "Cita en bloque",
|
|
50
|
+
"bold": "Negrita",
|
|
51
|
+
"boldDescription": "Agregue formato en negrita al texto.",
|
|
52
|
+
"bulletedList": "Lista con viñetas",
|
|
53
|
+
"code": "Código",
|
|
54
|
+
"codeBlock": "Bloque de código",
|
|
55
|
+
"emoji": "Emoji",
|
|
56
|
+
"fontSize": "Tamaño de fuente",
|
|
57
|
+
"highlight": "Resaltar",
|
|
58
|
+
"imageUpload": "Carga de imagen",
|
|
59
|
+
"italic": "Cursiva",
|
|
60
|
+
"italicDescription": "Agregue formato en cursiva al texto.",
|
|
61
|
+
"link": "Enlace",
|
|
62
|
+
"linkDescription": "Agregue un enlace al texto.",
|
|
63
|
+
"mention": "Mención",
|
|
64
|
+
"orderedList": "Lista numerada",
|
|
65
|
+
"redo": "Rehacer",
|
|
66
|
+
"strike": "Tachado",
|
|
67
|
+
"table": "Tabla",
|
|
68
|
+
"textColor": "Color de texto",
|
|
69
|
+
"underline": "Subrayar",
|
|
70
|
+
"underlineDescription": "Agregue formato subrayado al texto.",
|
|
71
|
+
"undo": "Deshacer",
|
|
72
|
+
"dynamicVariables": "Variables dinámicas",
|
|
73
|
+
"videoEmbed": "Incrustar video",
|
|
74
|
+
"videoUpload": "Carga de video",
|
|
75
|
+
"alignLeft": "Alinear a la izquierda",
|
|
76
|
+
"alignCenter": "Alinear al centro",
|
|
77
|
+
"alignRight": "Alinear a la derecha",
|
|
78
|
+
"delete": "Eliminar",
|
|
79
|
+
"embedVideo": "Incrustar video",
|
|
80
|
+
"normalText": "Texto normal",
|
|
81
|
+
"normalTextDescription": "Agregue un bloque de texto simple.",
|
|
82
|
+
"h1": "H1",
|
|
83
|
+
"heading1": "Encabezado 1",
|
|
84
|
+
"h1Description": "Agregue un encabezado grande.",
|
|
85
|
+
"h2": "H2",
|
|
86
|
+
"heading2": "Encabezado 2",
|
|
87
|
+
"h2Description": "Agregue un subencabezado.",
|
|
88
|
+
"h3": "H3",
|
|
89
|
+
"heading3": "Encabezado 3",
|
|
90
|
+
"h3Description": "Agregue un subencabezado de nivel 3.",
|
|
91
|
+
"h4": "H4",
|
|
92
|
+
"heading4": "Encabezado 4",
|
|
93
|
+
"h4Description": "Agregue un subencabezado de nivel 4.",
|
|
94
|
+
"h5": "H5",
|
|
95
|
+
"heading5": "Encabezado 5",
|
|
96
|
+
"h5Description": "Agregue un subencabezado de nivel 5.",
|
|
97
|
+
"h6": "H6",
|
|
98
|
+
"h6Description": "Agregue un subencabezado de nivel 6.",
|
|
99
|
+
"numberedList": "Lista numerada",
|
|
100
|
+
"numberedListDescription": "Agregue una lista con numeración.",
|
|
101
|
+
"bulletList": "Lista con viñetas",
|
|
102
|
+
"bulletListDescription": "Agregue una lista con viñetas.",
|
|
103
|
+
"todoList": "Lista de tareas",
|
|
104
|
+
"todoListDescription": "Agregue una lista de tareas con casillas de verificación.",
|
|
105
|
+
"image": "Imagen",
|
|
106
|
+
"imageDescription": "Agregue un bloque de imagen.",
|
|
107
|
+
"video": "Video",
|
|
108
|
+
"videoDescription": "Agregue un bloque de video.",
|
|
109
|
+
"blockQuoteDescription": "Agregue una cita en bloque.",
|
|
110
|
+
"codeDescription": "Agregue un bloque de código.",
|
|
111
|
+
"callout": "Destacar",
|
|
112
|
+
"calloutDescription": "Agregue un bloque de destacado para resaltar información importante.",
|
|
113
|
+
"selectCalloutType": "Seleccione el tipo de destacado",
|
|
114
|
+
"calloutDefault": "Predeterminado",
|
|
115
|
+
"calloutInfo": "Información",
|
|
116
|
+
"calloutWarning": "Advertencia",
|
|
117
|
+
"calloutError": "Error",
|
|
118
|
+
"calloutSuccess": "Éxito",
|
|
119
|
+
"calloutInfoDescription": "Agregue un bloque de destacado de información.",
|
|
120
|
+
"calloutWarningDescription": "Agregue un bloque de destacado de advertencia.",
|
|
121
|
+
"calloutErrorDescription": "Agregue un bloque de destacado de error.",
|
|
122
|
+
"calloutSuccessDescription": "Agregue un bloque de destacado de éxito.",
|
|
123
|
+
"emojiDescription": "Agregue un emoji.",
|
|
124
|
+
"divider": "Divisor",
|
|
125
|
+
"dividerDescription": "Agregue una línea horizontal para separar secciones.",
|
|
126
|
+
"embed": "Incrustar Youtube/Loom/Vimeo/Supademo",
|
|
127
|
+
"embedDescription": "Incrustar un video de servicios principales.",
|
|
128
|
+
"pasteUnformatted": "Pegar sin formato",
|
|
129
|
+
"pasteUnformattedDescription": "Pegar eliminando todos los estilos.",
|
|
130
|
+
"tableDescription": "Agregar una tabla.",
|
|
131
|
+
"noResults": "Sin resultados",
|
|
132
|
+
"rows": "Filas",
|
|
133
|
+
"columns": "Columnas"
|
|
134
|
+
},
|
|
135
|
+
"placeholders": {
|
|
136
|
+
"columns": "Ingrese columnas",
|
|
137
|
+
"linkInput": "Pegue o escriba un enlace...",
|
|
138
|
+
"pasteLink": "Pegue el enlace aquí...",
|
|
139
|
+
"pickColor": "Seleccione un color",
|
|
140
|
+
"rows": "Ingrese filas",
|
|
141
|
+
"searchUnsplash": "Buscar en Unsplash",
|
|
142
|
+
"url": "Ingrese URL",
|
|
143
|
+
"enterText": "Ingrese texto",
|
|
144
|
+
"writeSomething": "Escriba algo …",
|
|
145
|
+
"searchLanguages": "Buscar idiomas"
|
|
146
|
+
},
|
|
147
|
+
"table": {
|
|
148
|
+
"delete": "Eliminar tabla",
|
|
149
|
+
"deleteColumn": "Eliminar columna",
|
|
150
|
+
"deleteRow": "Eliminar fila",
|
|
151
|
+
"insertColumn": "Insertar columna",
|
|
152
|
+
"insertRow": "Insertar fila",
|
|
153
|
+
"mergeSplit": "Combinar/Dividir celda",
|
|
154
|
+
"toggleHeaderRow": "Alternar fila de encabezado"
|
|
155
|
+
},
|
|
156
|
+
"unsplash": {
|
|
157
|
+
"errorMessage": "¡Algo salió mal! Por favor, intente de nuevo más tarde.",
|
|
158
|
+
"noResults": "Sin resultados",
|
|
159
|
+
"end": "Fin de los resultados"
|
|
160
|
+
},
|
|
161
|
+
"localUploader": {
|
|
162
|
+
"dropFilesHere": "Suelta tus archivo(s) aquí o Navega.",
|
|
163
|
+
"maxFileSize": "Máx. tamaño de archivo: {{entity, anyCase}}",
|
|
164
|
+
"completed": "Completo",
|
|
165
|
+
"uploadImage": "Subir imagen",
|
|
166
|
+
"uploadVideo": "Subir video"
|
|
167
|
+
},
|
|
168
|
+
"editorContent": {
|
|
169
|
+
"imagePreviewAltText": "Vista previa de la imagen"
|
|
170
|
+
},
|
|
171
|
+
"codeblock": {
|
|
172
|
+
"showLineNumbers": "Mostrar números de línea",
|
|
173
|
+
"hideLineNumbers": "Ocultar números de línea"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
{
|
|
2
|
+
"neetoEditor": {
|
|
3
|
+
"common": {
|
|
4
|
+
"create": "Créer",
|
|
5
|
+
"download": "Télécharger",
|
|
6
|
+
"embed": "Intégrer",
|
|
7
|
+
"unlink": "Dissocier",
|
|
8
|
+
"videoUrl": "URL de la vidéo :",
|
|
9
|
+
"reset": "Réinitialiser",
|
|
10
|
+
"auto": "Automatique",
|
|
11
|
+
"edit": "Modifier",
|
|
12
|
+
"cancel": "Annuler",
|
|
13
|
+
"text": "Texte",
|
|
14
|
+
"done": "Fait",
|
|
15
|
+
"url": "Lien",
|
|
16
|
+
"editLink": "Modifier le lien",
|
|
17
|
+
"resetToDefault": "Réinitialiser par défaut",
|
|
18
|
+
"openInNewTab": "Ouvrir dans un nouvel onglet"
|
|
19
|
+
},
|
|
20
|
+
"attachments": {
|
|
21
|
+
"actionsBlocked": "Vous n'êtes pas autorisé à mettre à jour ou supprimer des pièces jointes",
|
|
22
|
+
"add": "Ajouter une pièce jointe",
|
|
23
|
+
"deleteConfirmation": "Vous supprimez définitivement la pièce jointe <strong>{{entity}}</strong>. Cela ne peut pas être annulé.",
|
|
24
|
+
"deleteTitle": "Supprimer la pièce jointe ?",
|
|
25
|
+
"maxNumberOfFiles": "Vous ne pouvez attacher que {{entity}} fichiers",
|
|
26
|
+
"nameEmpty": "Le nom de fichier ne peut pas être vide",
|
|
27
|
+
"noPreview": "Aucun aperçu disponible, cliquez pour <span>télécharger</span>.",
|
|
28
|
+
"oneAttachmentAllowed": "Une seule pièce jointe est autorisée",
|
|
29
|
+
"uploading": "Téléchargement"
|
|
30
|
+
},
|
|
31
|
+
"error": {
|
|
32
|
+
"invalidUrl": "Veuillez entrer une URL valide",
|
|
33
|
+
"invalidEmbedUrl": "Sources prises en charge : NeetoRecord, YouTube, Vimeo, Loom, Supademo.",
|
|
34
|
+
"cannotAddFiles": "Impossible d'ajouter des fichiers",
|
|
35
|
+
"onBeforeFileAddedReturn": "Impossible d'ajouter le fichier car onBeforeFileAdded a retourné false.",
|
|
36
|
+
"fileIsTooLarge": "La taille du fichier est trop grande. La taille maximale est {{maxFileSize, anyCase}}.",
|
|
37
|
+
"imageSizeIsShouldBeLess": "La taille de l'image doit être inférieure à {{limit}} MO",
|
|
38
|
+
"urlRequired": "L'URL est requise",
|
|
39
|
+
"textRequired": "Le texte est requis",
|
|
40
|
+
"uploadFileFailed": "Échec du téléchargement d'une pièce jointe",
|
|
41
|
+
"fileNotAllowed": "Le type de fichier sélectionné n'est pas autorisé",
|
|
42
|
+
"noResults": "Aucun résultat",
|
|
43
|
+
"imageUploadFailed": "Échec du téléchargement de l'image, veuillez réessayer !"
|
|
44
|
+
},
|
|
45
|
+
"menu": {
|
|
46
|
+
"attachments": "Pièces jointes",
|
|
47
|
+
"attachmentsDescription": "Ajouter des fichiers en tant que pièces jointes.",
|
|
48
|
+
"file": "Fichier",
|
|
49
|
+
"blockQuote": "Citation",
|
|
50
|
+
"bold": "Gras",
|
|
51
|
+
"boldDescription": "Ajouter une mise en forme en gras au texte.",
|
|
52
|
+
"bulletedList": "Liste à puces",
|
|
53
|
+
"code": "Code",
|
|
54
|
+
"codeBlock": "Bloc de code",
|
|
55
|
+
"emoji": "Émoji",
|
|
56
|
+
"fontSize": "Taille de police",
|
|
57
|
+
"highlight": "Surligner",
|
|
58
|
+
"imageUpload": "Téléchargement d'image",
|
|
59
|
+
"italic": "Italique",
|
|
60
|
+
"italicDescription": "Ajouter une mise en forme en italique au texte.",
|
|
61
|
+
"link": "Lien",
|
|
62
|
+
"linkDescription": "Ajouter un lien au texte.",
|
|
63
|
+
"mention": "Mention",
|
|
64
|
+
"orderedList": "Liste numérotée",
|
|
65
|
+
"redo": "Rétablir",
|
|
66
|
+
"strike": "Barré",
|
|
67
|
+
"table": "Tableau",
|
|
68
|
+
"textColor": "Couleur du texte",
|
|
69
|
+
"underline": "Souligner",
|
|
70
|
+
"underlineDescription": "Ajouter une mise en forme soulignée au texte.",
|
|
71
|
+
"undo": "Annuler",
|
|
72
|
+
"dynamicVariables": "Variables dynamiques",
|
|
73
|
+
"videoEmbed": "Intégrer la vidéo",
|
|
74
|
+
"videoUpload": "Téléchargement de vidéo",
|
|
75
|
+
"alignLeft": "Aligner à gauche",
|
|
76
|
+
"alignCenter": "Centrer",
|
|
77
|
+
"alignRight": "Aligner à droite",
|
|
78
|
+
"delete": "Supprimer",
|
|
79
|
+
"embedVideo": "Intégrer une vidéo",
|
|
80
|
+
"normalText": "Texte normal",
|
|
81
|
+
"normalTextDescription": "Ajouter un bloc de texte brut.",
|
|
82
|
+
"h1": "H1",
|
|
83
|
+
"heading1": "Titre 1",
|
|
84
|
+
"h1Description": "Ajouter un grand titre.",
|
|
85
|
+
"h2": "H2",
|
|
86
|
+
"heading2": "Titre 2",
|
|
87
|
+
"h2Description": "Ajouter un sous-titre.",
|
|
88
|
+
"h3": "H3",
|
|
89
|
+
"heading3": "Titre 3",
|
|
90
|
+
"h3Description": "Ajouter un sous-titre de niveau 3.",
|
|
91
|
+
"h4": "H4",
|
|
92
|
+
"heading4": "Titre 4",
|
|
93
|
+
"h4Description": "Ajouter un sous-titre de niveau 4.",
|
|
94
|
+
"h5": "H5",
|
|
95
|
+
"heading5": "Titre 5",
|
|
96
|
+
"h5Description": "Ajouter un sous-titre de niveau 5.",
|
|
97
|
+
"h6": "H6",
|
|
98
|
+
"h6Description": "Ajouter un sous-titre de niveau 6.",
|
|
99
|
+
"numberedList": "Liste numérotée",
|
|
100
|
+
"numberedListDescription": "Ajouter une liste avec numérotage.",
|
|
101
|
+
"bulletList": "Liste à puces",
|
|
102
|
+
"bulletListDescription": "Ajouter une liste avec des puces.",
|
|
103
|
+
"todoList": "Liste de tâches",
|
|
104
|
+
"todoListDescription": "Ajouter une liste de tâches avec des cases à cocher.",
|
|
105
|
+
"image": "Image",
|
|
106
|
+
"imageDescription": "Ajouter un bloc d'image.",
|
|
107
|
+
"video": "Vidéo",
|
|
108
|
+
"videoDescription": "Ajouter un bloc vidéo.",
|
|
109
|
+
"blockQuoteDescription": "Ajouter une citation.",
|
|
110
|
+
"codeDescription": "Ajouter un bloc de code.",
|
|
111
|
+
"callout": "Encadré",
|
|
112
|
+
"calloutDescription": "Ajouter un encadré pour mettre en évidence des informations importantes.",
|
|
113
|
+
"selectCalloutType": "Sélectionner le type d'encadré",
|
|
114
|
+
"calloutDefault": "Par défaut",
|
|
115
|
+
"calloutInfo": "Info",
|
|
116
|
+
"calloutWarning": "Avertissement",
|
|
117
|
+
"calloutError": "Erreur",
|
|
118
|
+
"calloutSuccess": "Succès",
|
|
119
|
+
"calloutInfoDescription": "Ajouter un bloc d'encadré d'information.",
|
|
120
|
+
"calloutWarningDescription": "Ajouter un bloc d'encadré d'avertissement.",
|
|
121
|
+
"calloutErrorDescription": "Ajouter un bloc d'encadré d'erreur.",
|
|
122
|
+
"calloutSuccessDescription": "Ajouter un bloc d'encadré de succès.",
|
|
123
|
+
"emojiDescription": "Ajouter un émoji.",
|
|
124
|
+
"divider": "Séparateur",
|
|
125
|
+
"dividerDescription": "Ajouter une ligne horizontale pour séparer les sections.",
|
|
126
|
+
"embed": "Intégrer Youtube/Loom/Vimeo/Supademo",
|
|
127
|
+
"embedDescription": "Intégrer une vidéo de services majeurs.",
|
|
128
|
+
"pasteUnformatted": "Coller sans formatage",
|
|
129
|
+
"pasteUnformattedDescription": "Coller en supprimant tous les styles.",
|
|
130
|
+
"tableDescription": "Ajouter un tableau.",
|
|
131
|
+
"noResults": "Aucun résultat",
|
|
132
|
+
"rows": "Lignes",
|
|
133
|
+
"columns": "Colonnes"
|
|
134
|
+
},
|
|
135
|
+
"placeholders": {
|
|
136
|
+
"columns": "Entrez les colonnes",
|
|
137
|
+
"linkInput": "Collez ou tapez un lien...",
|
|
138
|
+
"pasteLink": "Collez le lien ici...",
|
|
139
|
+
"pickColor": "Choisissez une couleur",
|
|
140
|
+
"rows": "Entrez les lignes",
|
|
141
|
+
"searchUnsplash": "Rechercher Unsplash",
|
|
142
|
+
"url": "Entrez l'URL",
|
|
143
|
+
"enterText": "Entrez le texte",
|
|
144
|
+
"writeSomething": "Écrivez quelque chose ...",
|
|
145
|
+
"searchLanguages": "Rechercher des langues"
|
|
146
|
+
},
|
|
147
|
+
"table": {
|
|
148
|
+
"delete": "Supprimer le tableau",
|
|
149
|
+
"deleteColumn": "Supprimer la colonne",
|
|
150
|
+
"deleteRow": "Supprimer la ligne",
|
|
151
|
+
"insertColumn": "Insérer une colonne",
|
|
152
|
+
"insertRow": "Insérer une ligne",
|
|
153
|
+
"mergeSplit": "Fusionner/Séparer la cellule",
|
|
154
|
+
"toggleHeaderRow": "Alterner la ligne d'en-tête"
|
|
155
|
+
},
|
|
156
|
+
"unsplash": {
|
|
157
|
+
"errorMessage": "Une erreur s'est produite ! Veuillez réessayer plus tard.",
|
|
158
|
+
"noResults": "Aucun résultat",
|
|
159
|
+
"end": "Fin des résultats"
|
|
160
|
+
},
|
|
161
|
+
"localUploader": {
|
|
162
|
+
"dropFilesHere": "Déposez vos fichiers ici ou parcourez.",
|
|
163
|
+
"maxFileSize": "Taille maximale du fichier : {{entity, anyCase}}",
|
|
164
|
+
"completed": "Terminé",
|
|
165
|
+
"uploadImage": "Télécharger l'image",
|
|
166
|
+
"uploadVideo": "Télécharger la vidéo"
|
|
167
|
+
},
|
|
168
|
+
"editorContent": {
|
|
169
|
+
"imagePreviewAltText": "Aperçu de l'image"
|
|
170
|
+
},
|
|
171
|
+
"codeblock": {
|
|
172
|
+
"showLineNumbers": "Afficher les numéros de ligne",
|
|
173
|
+
"hideLineNumbers": "Masquer les numéros de ligne"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
package/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import {
|
|
3
3
|
Editor as TiptapEditor,
|
|
4
4
|
Extension,
|
|
@@ -14,7 +14,7 @@ import { StarterKitOptions } from "@tiptap/starter-kit";
|
|
|
14
14
|
import { PlaceholderOptions } from "@tiptap/extension-placeholder";
|
|
15
15
|
import { CharacterCountOptions } from "@tiptap/extension-character-count";
|
|
16
16
|
import Variables from "components/Editor/CustomExtensions/Variable/index";
|
|
17
|
-
import { EDITOR_OPTIONS as EDITOR_OPTIONS_VALUES } from "common/constants"
|
|
17
|
+
import { EDITOR_OPTIONS as EDITOR_OPTIONS_VALUES } from "common/constants";
|
|
18
18
|
|
|
19
19
|
interface Command {
|
|
20
20
|
label: string;
|
|
@@ -81,12 +81,12 @@ interface attachment {
|
|
|
81
81
|
signedId?: string;
|
|
82
82
|
url?: string;
|
|
83
83
|
[otherProps: string]: any;
|
|
84
|
-
}
|
|
84
|
+
}
|
|
85
85
|
|
|
86
86
|
interface attachmentsConfig {
|
|
87
|
-
maxFileSize?: number
|
|
88
|
-
maxNumberOfFiles?: number
|
|
89
|
-
allowedFileTypes?: string[]
|
|
87
|
+
maxFileSize?: number;
|
|
88
|
+
maxNumberOfFiles?: number;
|
|
89
|
+
allowedFileTypes?: string[];
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
interface EditorProps {
|
|
@@ -166,6 +166,7 @@ export function EditorContent(props: {
|
|
|
166
166
|
variables?: (VariableCategory | Variable)[];
|
|
167
167
|
size?: "large" | "medium" | "small";
|
|
168
168
|
configuration?: EditorContentConfigType;
|
|
169
|
+
onChange?: (htmlContent: string) => void;
|
|
169
170
|
[otherProps: string]: any;
|
|
170
171
|
}): JSX.Element;
|
|
171
172
|
|
|
@@ -175,7 +176,10 @@ export function removeEmptyTags(html: string): string;
|
|
|
175
176
|
|
|
176
177
|
export function isEditorEmpty(htmlContent: string | null | undefined): boolean;
|
|
177
178
|
|
|
178
|
-
export function isEditorContentWithinLimit(
|
|
179
|
+
export function isEditorContentWithinLimit(
|
|
180
|
+
htmlContent: string | null | undefined,
|
|
181
|
+
maxLength: number
|
|
182
|
+
): boolean;
|
|
179
183
|
|
|
180
184
|
export function isEditorOverlaysActive(): boolean;
|
|
181
185
|
|