neiki-editor 2.4.0 → 2.6.0
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/README.md +13 -7
- package/dist/neiki-editor.css +93 -4
- package/dist/neiki-editor.js +806 -6
- package/dist/neiki-editor.min.css +1 -1
- package/dist/neiki-editor.min.js +1 -1
- package/package.json +1 -1
package/dist/neiki-editor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NeikiEditor - A Modern WYSIWYG Editor
|
|
3
|
-
* Version: 2.
|
|
3
|
+
* Version: 2.6.0
|
|
4
4
|
*
|
|
5
5
|
* A lightweight, feature-rich text editor with support for:
|
|
6
6
|
* - Rich text formatting (bold, italic, underline, etc.)
|
|
@@ -157,6 +157,11 @@
|
|
|
157
157
|
// Clear all
|
|
158
158
|
'confirm.clearAll': 'Clear all content?',
|
|
159
159
|
|
|
160
|
+
// Color picker
|
|
161
|
+
'color.reset': 'Reset to default',
|
|
162
|
+
'color.pick': 'Pick a color',
|
|
163
|
+
'color.apply': 'Apply',
|
|
164
|
+
|
|
160
165
|
// Placeholder
|
|
161
166
|
'placeholder': 'Start typing...'
|
|
162
167
|
},
|
|
@@ -292,9 +297,683 @@
|
|
|
292
297
|
|
|
293
298
|
// Clear all
|
|
294
299
|
'confirm.clearAll': 'Vymazat veškerý obsah?',
|
|
295
|
-
|
|
296
|
-
|
|
300
|
+
'color.reset': 'Obnovit výchozí',
|
|
301
|
+
'color.pick': 'Vybrat barvu',
|
|
302
|
+
'color.apply': 'Použít',
|
|
297
303
|
'placeholder': 'Začněte psát...'
|
|
304
|
+
},
|
|
305
|
+
zh: {
|
|
306
|
+
// Toolbar tooltips
|
|
307
|
+
'toolbar.undo': '撤销 (Ctrl+Z)',
|
|
308
|
+
'toolbar.redo': '重做 (Ctrl+Y)',
|
|
309
|
+
'toolbar.bold': '粗体 (Ctrl+B)',
|
|
310
|
+
'toolbar.italic': '斜体 (Ctrl+I)',
|
|
311
|
+
'toolbar.underline': '下划线 (Ctrl+U)',
|
|
312
|
+
'toolbar.strikethrough': '删除线',
|
|
313
|
+
'toolbar.heading': '标题',
|
|
314
|
+
'toolbar.fontSize': '字体大小',
|
|
315
|
+
'toolbar.fontFamily': '字体',
|
|
316
|
+
'toolbar.foreColor': '文字颜色',
|
|
317
|
+
'toolbar.backColor': '背景颜色',
|
|
318
|
+
'toolbar.alignLeft': '左对齐',
|
|
319
|
+
'toolbar.alignCenter': '居中对齐',
|
|
320
|
+
'toolbar.alignRight': '右对齐',
|
|
321
|
+
'toolbar.alignJustify': '两端对齐',
|
|
322
|
+
'toolbar.bulletList': '无序列表',
|
|
323
|
+
'toolbar.numberedList': '有序列表',
|
|
324
|
+
'toolbar.indent': '增加缩进',
|
|
325
|
+
'toolbar.outdent': '减少缩进',
|
|
326
|
+
'toolbar.link': '插入链接 (Ctrl+K)',
|
|
327
|
+
'toolbar.image': '插入图片',
|
|
328
|
+
'toolbar.table': '插入表格',
|
|
329
|
+
'toolbar.blockquote': '引用',
|
|
330
|
+
'toolbar.viewCode': '查看代码 (HTML)',
|
|
331
|
+
'toolbar.horizontalRule': '水平线',
|
|
332
|
+
'toolbar.subscript': '下标',
|
|
333
|
+
'toolbar.superscript': '上标',
|
|
334
|
+
'toolbar.removeFormat': '清除格式',
|
|
335
|
+
'toolbar.findReplace': '查找和替换',
|
|
336
|
+
'toolbar.emoji': '插入表情',
|
|
337
|
+
'toolbar.specialChars': '特殊字符',
|
|
338
|
+
'toolbar.fullscreen': '全屏',
|
|
339
|
+
'toolbar.autosave': '自动保存',
|
|
340
|
+
'toolbar.themeToggle': '切换主题',
|
|
341
|
+
'toolbar.print': '打印',
|
|
342
|
+
'toolbar.insert': '插入',
|
|
343
|
+
'toolbar.moreOptions': '更多选项',
|
|
344
|
+
'toolbar.decreaseFontSize': '缩小字体',
|
|
345
|
+
'toolbar.increaseFontSize': '增大字体',
|
|
346
|
+
'heading.paragraph': '段落',
|
|
347
|
+
'heading.h1': '标题 1',
|
|
348
|
+
'heading.h2': '标题 2',
|
|
349
|
+
'heading.h3': '标题 3',
|
|
350
|
+
'heading.h4': '标题 4',
|
|
351
|
+
'heading.h5': '标题 5',
|
|
352
|
+
'heading.h6': '标题 6',
|
|
353
|
+
'font.sansSerif': '无衬线',
|
|
354
|
+
'font.serif': '衬线',
|
|
355
|
+
'font.monospace': '等宽',
|
|
356
|
+
'font.cursive': '手写',
|
|
357
|
+
'insert.link': '链接',
|
|
358
|
+
'insert.image': '图片',
|
|
359
|
+
'insert.table': '表格',
|
|
360
|
+
'insert.emoji': '表情',
|
|
361
|
+
'insert.symbol': '符号',
|
|
362
|
+
'menu.save': '保存',
|
|
363
|
+
'menu.preview': '预览',
|
|
364
|
+
'menu.download': '下载',
|
|
365
|
+
'menu.print': '打印',
|
|
366
|
+
'menu.autosave': '自动保存',
|
|
367
|
+
'menu.clearAll': '清除全部',
|
|
368
|
+
'menu.toggleTheme': '切换主题',
|
|
369
|
+
'menu.fullscreen': '全屏',
|
|
370
|
+
'modal.insertLink': '插入链接',
|
|
371
|
+
'modal.url': 'URL',
|
|
372
|
+
'modal.text': '文本',
|
|
373
|
+
'modal.linkText': '链接文字',
|
|
374
|
+
'modal.openInNewTab': '在新标签页中打开',
|
|
375
|
+
'modal.cancel': '取消',
|
|
376
|
+
'modal.insert': '插入',
|
|
377
|
+
'modal.insertImage': '插入图片',
|
|
378
|
+
'modal.uploadImage': '上传图片',
|
|
379
|
+
'modal.convertedToBase64': '将转换为base64',
|
|
380
|
+
'modal.or': '或',
|
|
381
|
+
'modal.imageUrl': '图片URL',
|
|
382
|
+
'modal.altText': '替代文本',
|
|
383
|
+
'modal.describeImage': '描述图片',
|
|
384
|
+
'modal.widthOptional': '宽度(可选)',
|
|
385
|
+
'modal.invalidImageFile': '请选择有效的图片文件。',
|
|
386
|
+
'modal.insertTable': '插入表格',
|
|
387
|
+
'modal.rows': '行',
|
|
388
|
+
'modal.columns': '列',
|
|
389
|
+
'modal.includeHeaderRow': '包含标题行',
|
|
390
|
+
'modal.findReplace': '查找和替换',
|
|
391
|
+
'modal.find': '查找',
|
|
392
|
+
'modal.searchText': '搜索文本...',
|
|
393
|
+
'modal.replaceWith': '替换为',
|
|
394
|
+
'modal.replacementText': '替换文本...',
|
|
395
|
+
'modal.useRegex': '使用正则表达式',
|
|
396
|
+
'modal.caseSensitive': '区分大小写',
|
|
397
|
+
'modal.findNext': '查找下一个',
|
|
398
|
+
'modal.replace': '替换',
|
|
399
|
+
'modal.replaceAll': '全部替换',
|
|
400
|
+
'modal.invalidRegex': '无效的正则表达式',
|
|
401
|
+
'modal.matchesFound': '找到 {count} 个匹配',
|
|
402
|
+
'modal.matchOf': '第 {current} 个,共 {total} 个',
|
|
403
|
+
'modal.matchesRemaining': '剩余 {count} 个匹配',
|
|
404
|
+
'modal.replacedOccurrences': '已替换 {count} 处',
|
|
405
|
+
'status.words': '词',
|
|
406
|
+
'status.word': '词',
|
|
407
|
+
'status.chars': '字符',
|
|
408
|
+
'status.char': '字符',
|
|
409
|
+
'autosave.savedLocally': '已本地保存',
|
|
410
|
+
'autosave.autosaving': '正在保存...',
|
|
411
|
+
'preview.title': '文档预览',
|
|
412
|
+
'confirm.clearAll': '清除所有内容?',
|
|
413
|
+
'color.reset': '重置为默认',
|
|
414
|
+
'color.pick': '选择颜色',
|
|
415
|
+
'color.apply': '应用',
|
|
416
|
+
'placeholder': '开始输入...'
|
|
417
|
+
},
|
|
418
|
+
es: {
|
|
419
|
+
'toolbar.undo': 'Deshacer (Ctrl+Z)',
|
|
420
|
+
'toolbar.redo': 'Rehacer (Ctrl+Y)',
|
|
421
|
+
'toolbar.bold': 'Negrita (Ctrl+B)',
|
|
422
|
+
'toolbar.italic': 'Cursiva (Ctrl+I)',
|
|
423
|
+
'toolbar.underline': 'Subrayado (Ctrl+U)',
|
|
424
|
+
'toolbar.strikethrough': 'Tachado',
|
|
425
|
+
'toolbar.heading': 'Encabezado',
|
|
426
|
+
'toolbar.fontSize': 'Tamaño de fuente',
|
|
427
|
+
'toolbar.fontFamily': 'Familia de fuente',
|
|
428
|
+
'toolbar.foreColor': 'Color de texto',
|
|
429
|
+
'toolbar.backColor': 'Color de fondo',
|
|
430
|
+
'toolbar.alignLeft': 'Alinear a la izquierda',
|
|
431
|
+
'toolbar.alignCenter': 'Centrar',
|
|
432
|
+
'toolbar.alignRight': 'Alinear a la derecha',
|
|
433
|
+
'toolbar.alignJustify': 'Justificar',
|
|
434
|
+
'toolbar.bulletList': 'Lista con viñetas',
|
|
435
|
+
'toolbar.numberedList': 'Lista numerada',
|
|
436
|
+
'toolbar.indent': 'Aumentar sangría',
|
|
437
|
+
'toolbar.outdent': 'Disminuir sangría',
|
|
438
|
+
'toolbar.link': 'Insertar enlace (Ctrl+K)',
|
|
439
|
+
'toolbar.image': 'Insertar imagen',
|
|
440
|
+
'toolbar.table': 'Insertar tabla',
|
|
441
|
+
'toolbar.blockquote': 'Cita',
|
|
442
|
+
'toolbar.viewCode': 'Ver código (HTML)',
|
|
443
|
+
'toolbar.horizontalRule': 'Línea horizontal',
|
|
444
|
+
'toolbar.subscript': 'Subíndice',
|
|
445
|
+
'toolbar.superscript': 'Superíndice',
|
|
446
|
+
'toolbar.removeFormat': 'Eliminar formato',
|
|
447
|
+
'toolbar.findReplace': 'Buscar y reemplazar',
|
|
448
|
+
'toolbar.emoji': 'Insertar emoji',
|
|
449
|
+
'toolbar.specialChars': 'Caracteres especiales',
|
|
450
|
+
'toolbar.fullscreen': 'Pantalla completa',
|
|
451
|
+
'toolbar.autosave': 'Guardado automático',
|
|
452
|
+
'toolbar.themeToggle': 'Cambiar tema',
|
|
453
|
+
'toolbar.print': 'Imprimir',
|
|
454
|
+
'toolbar.insert': 'Insertar',
|
|
455
|
+
'toolbar.moreOptions': 'Más opciones',
|
|
456
|
+
'toolbar.decreaseFontSize': 'Reducir tamaño de fuente',
|
|
457
|
+
'toolbar.increaseFontSize': 'Aumentar tamaño de fuente',
|
|
458
|
+
'heading.paragraph': 'Párrafo',
|
|
459
|
+
'heading.h1': 'Encabezado 1',
|
|
460
|
+
'heading.h2': 'Encabezado 2',
|
|
461
|
+
'heading.h3': 'Encabezado 3',
|
|
462
|
+
'heading.h4': 'Encabezado 4',
|
|
463
|
+
'heading.h5': 'Encabezado 5',
|
|
464
|
+
'heading.h6': 'Encabezado 6',
|
|
465
|
+
'font.sansSerif': 'Sans Serif',
|
|
466
|
+
'font.serif': 'Serif',
|
|
467
|
+
'font.monospace': 'Monospace',
|
|
468
|
+
'font.cursive': 'Cursiva',
|
|
469
|
+
'insert.link': 'Enlace',
|
|
470
|
+
'insert.image': 'Imagen',
|
|
471
|
+
'insert.table': 'Tabla',
|
|
472
|
+
'insert.emoji': 'Emoji',
|
|
473
|
+
'insert.symbol': 'Símbolo',
|
|
474
|
+
'menu.save': 'Guardar',
|
|
475
|
+
'menu.preview': 'Vista previa',
|
|
476
|
+
'menu.download': 'Descargar',
|
|
477
|
+
'menu.print': 'Imprimir',
|
|
478
|
+
'menu.autosave': 'Guardado automático',
|
|
479
|
+
'menu.clearAll': 'Borrar todo',
|
|
480
|
+
'menu.toggleTheme': 'Cambiar tema',
|
|
481
|
+
'menu.fullscreen': 'Pantalla completa',
|
|
482
|
+
'modal.insertLink': 'Insertar enlace',
|
|
483
|
+
'modal.url': 'URL',
|
|
484
|
+
'modal.text': 'Texto',
|
|
485
|
+
'modal.linkText': 'Texto del enlace',
|
|
486
|
+
'modal.openInNewTab': 'Abrir en nueva pestaña',
|
|
487
|
+
'modal.cancel': 'Cancelar',
|
|
488
|
+
'modal.insert': 'Insertar',
|
|
489
|
+
'modal.insertImage': 'Insertar imagen',
|
|
490
|
+
'modal.uploadImage': 'Subir imagen',
|
|
491
|
+
'modal.convertedToBase64': 'Se convertirá a base64',
|
|
492
|
+
'modal.or': 'O',
|
|
493
|
+
'modal.imageUrl': 'URL de imagen',
|
|
494
|
+
'modal.altText': 'Texto alternativo',
|
|
495
|
+
'modal.describeImage': 'Describir la imagen',
|
|
496
|
+
'modal.widthOptional': 'Ancho (opcional)',
|
|
497
|
+
'modal.invalidImageFile': 'Por favor, seleccione un archivo de imagen válido.',
|
|
498
|
+
'modal.insertTable': 'Insertar tabla',
|
|
499
|
+
'modal.rows': 'Filas',
|
|
500
|
+
'modal.columns': 'Columnas',
|
|
501
|
+
'modal.includeHeaderRow': 'Incluir fila de encabezado',
|
|
502
|
+
'modal.findReplace': 'Buscar y reemplazar',
|
|
503
|
+
'modal.find': 'Buscar',
|
|
504
|
+
'modal.searchText': 'Texto a buscar...',
|
|
505
|
+
'modal.replaceWith': 'Reemplazar con',
|
|
506
|
+
'modal.replacementText': 'Texto de reemplazo...',
|
|
507
|
+
'modal.useRegex': 'Usar expresión regular',
|
|
508
|
+
'modal.caseSensitive': 'Distinguir mayúsculas',
|
|
509
|
+
'modal.findNext': 'Buscar siguiente',
|
|
510
|
+
'modal.replace': 'Reemplazar',
|
|
511
|
+
'modal.replaceAll': 'Reemplazar todo',
|
|
512
|
+
'modal.invalidRegex': 'Expresión regular no válida',
|
|
513
|
+
'modal.matchesFound': '{count} coincidencia(s) encontrada(s)',
|
|
514
|
+
'modal.matchOf': 'Coincidencia {current} de {total}',
|
|
515
|
+
'modal.matchesRemaining': '{count} coincidencia(s) restante(s)',
|
|
516
|
+
'modal.replacedOccurrences': '{count} ocurrencia(s) reemplazada(s)',
|
|
517
|
+
'status.words': 'palabras',
|
|
518
|
+
'status.word': 'palabra',
|
|
519
|
+
'status.chars': 'caracteres',
|
|
520
|
+
'status.char': 'carácter',
|
|
521
|
+
'autosave.savedLocally': 'Guardado localmente',
|
|
522
|
+
'autosave.autosaving': 'Guardando...',
|
|
523
|
+
'preview.title': 'Vista previa del documento',
|
|
524
|
+
'confirm.clearAll': '¿Borrar todo el contenido?',
|
|
525
|
+
'color.reset': 'Restablecer',
|
|
526
|
+
'color.pick': 'Elegir color',
|
|
527
|
+
'color.apply': 'Aplicar',
|
|
528
|
+
'placeholder': 'Empiece a escribir...'
|
|
529
|
+
},
|
|
530
|
+
de: {
|
|
531
|
+
'toolbar.undo': 'Rückgängig (Strg+Z)',
|
|
532
|
+
'toolbar.redo': 'Wiederholen (Strg+Y)',
|
|
533
|
+
'toolbar.bold': 'Fett (Strg+B)',
|
|
534
|
+
'toolbar.italic': 'Kursiv (Strg+I)',
|
|
535
|
+
'toolbar.underline': 'Unterstrichen (Strg+U)',
|
|
536
|
+
'toolbar.strikethrough': 'Durchgestrichen',
|
|
537
|
+
'toolbar.heading': 'Überschrift',
|
|
538
|
+
'toolbar.fontSize': 'Schriftgröße',
|
|
539
|
+
'toolbar.fontFamily': 'Schriftart',
|
|
540
|
+
'toolbar.foreColor': 'Textfarbe',
|
|
541
|
+
'toolbar.backColor': 'Hintergrundfarbe',
|
|
542
|
+
'toolbar.alignLeft': 'Linksbündig',
|
|
543
|
+
'toolbar.alignCenter': 'Zentriert',
|
|
544
|
+
'toolbar.alignRight': 'Rechtsbündig',
|
|
545
|
+
'toolbar.alignJustify': 'Blocksatz',
|
|
546
|
+
'toolbar.bulletList': 'Aufzählungsliste',
|
|
547
|
+
'toolbar.numberedList': 'Nummerierte Liste',
|
|
548
|
+
'toolbar.indent': 'Einzug vergrößern',
|
|
549
|
+
'toolbar.outdent': 'Einzug verkleinern',
|
|
550
|
+
'toolbar.link': 'Link einfügen (Strg+K)',
|
|
551
|
+
'toolbar.image': 'Bild einfügen',
|
|
552
|
+
'toolbar.table': 'Tabelle einfügen',
|
|
553
|
+
'toolbar.blockquote': 'Zitat',
|
|
554
|
+
'toolbar.viewCode': 'Code anzeigen (HTML)',
|
|
555
|
+
'toolbar.horizontalRule': 'Horizontale Linie',
|
|
556
|
+
'toolbar.subscript': 'Tiefgestellt',
|
|
557
|
+
'toolbar.superscript': 'Hochgestellt',
|
|
558
|
+
'toolbar.removeFormat': 'Formatierung entfernen',
|
|
559
|
+
'toolbar.findReplace': 'Suchen und Ersetzen',
|
|
560
|
+
'toolbar.emoji': 'Emoji einfügen',
|
|
561
|
+
'toolbar.specialChars': 'Sonderzeichen',
|
|
562
|
+
'toolbar.fullscreen': 'Vollbild',
|
|
563
|
+
'toolbar.autosave': 'Automatisch speichern',
|
|
564
|
+
'toolbar.themeToggle': 'Design wechseln',
|
|
565
|
+
'toolbar.print': 'Drucken',
|
|
566
|
+
'toolbar.insert': 'Einfügen',
|
|
567
|
+
'toolbar.moreOptions': 'Weitere Optionen',
|
|
568
|
+
'toolbar.decreaseFontSize': 'Schrift verkleinern',
|
|
569
|
+
'toolbar.increaseFontSize': 'Schrift vergrößern',
|
|
570
|
+
'heading.paragraph': 'Absatz',
|
|
571
|
+
'heading.h1': 'Überschrift 1',
|
|
572
|
+
'heading.h2': 'Überschrift 2',
|
|
573
|
+
'heading.h3': 'Überschrift 3',
|
|
574
|
+
'heading.h4': 'Überschrift 4',
|
|
575
|
+
'heading.h5': 'Überschrift 5',
|
|
576
|
+
'heading.h6': 'Überschrift 6',
|
|
577
|
+
'font.sansSerif': 'Sans Serif',
|
|
578
|
+
'font.serif': 'Serif',
|
|
579
|
+
'font.monospace': 'Monospace',
|
|
580
|
+
'font.cursive': 'Schreibschrift',
|
|
581
|
+
'insert.link': 'Link',
|
|
582
|
+
'insert.image': 'Bild',
|
|
583
|
+
'insert.table': 'Tabelle',
|
|
584
|
+
'insert.emoji': 'Emoji',
|
|
585
|
+
'insert.symbol': 'Symbol',
|
|
586
|
+
'menu.save': 'Speichern',
|
|
587
|
+
'menu.preview': 'Vorschau',
|
|
588
|
+
'menu.download': 'Herunterladen',
|
|
589
|
+
'menu.print': 'Drucken',
|
|
590
|
+
'menu.autosave': 'Automatisch speichern',
|
|
591
|
+
'menu.clearAll': 'Alles löschen',
|
|
592
|
+
'menu.toggleTheme': 'Design wechseln',
|
|
593
|
+
'menu.fullscreen': 'Vollbild',
|
|
594
|
+
'modal.insertLink': 'Link einfügen',
|
|
595
|
+
'modal.url': 'URL',
|
|
596
|
+
'modal.text': 'Text',
|
|
597
|
+
'modal.linkText': 'Linktext',
|
|
598
|
+
'modal.openInNewTab': 'In neuem Tab öffnen',
|
|
599
|
+
'modal.cancel': 'Abbrechen',
|
|
600
|
+
'modal.insert': 'Einfügen',
|
|
601
|
+
'modal.insertImage': 'Bild einfügen',
|
|
602
|
+
'modal.uploadImage': 'Bild hochladen',
|
|
603
|
+
'modal.convertedToBase64': 'Wird in Base64 konvertiert',
|
|
604
|
+
'modal.or': 'ODER',
|
|
605
|
+
'modal.imageUrl': 'Bild-URL',
|
|
606
|
+
'modal.altText': 'Alternativtext',
|
|
607
|
+
'modal.describeImage': 'Bild beschreiben',
|
|
608
|
+
'modal.widthOptional': 'Breite (optional)',
|
|
609
|
+
'modal.invalidImageFile': 'Bitte wählen Sie eine gültige Bilddatei.',
|
|
610
|
+
'modal.insertTable': 'Tabelle einfügen',
|
|
611
|
+
'modal.rows': 'Zeilen',
|
|
612
|
+
'modal.columns': 'Spalten',
|
|
613
|
+
'modal.includeHeaderRow': 'Kopfzeile einfügen',
|
|
614
|
+
'modal.findReplace': 'Suchen und Ersetzen',
|
|
615
|
+
'modal.find': 'Suchen',
|
|
616
|
+
'modal.searchText': 'Suchtext...',
|
|
617
|
+
'modal.replaceWith': 'Ersetzen durch',
|
|
618
|
+
'modal.replacementText': 'Ersatztext...',
|
|
619
|
+
'modal.useRegex': 'Regulären Ausdruck verwenden',
|
|
620
|
+
'modal.caseSensitive': 'Groß-/Kleinschreibung beachten',
|
|
621
|
+
'modal.findNext': 'Weitersuchen',
|
|
622
|
+
'modal.replace': 'Ersetzen',
|
|
623
|
+
'modal.replaceAll': 'Alle ersetzen',
|
|
624
|
+
'modal.invalidRegex': 'Ungültiger regulärer Ausdruck',
|
|
625
|
+
'modal.matchesFound': '{count} Treffer gefunden',
|
|
626
|
+
'modal.matchOf': 'Treffer {current} von {total}',
|
|
627
|
+
'modal.matchesRemaining': '{count} Treffer verbleibend',
|
|
628
|
+
'modal.replacedOccurrences': '{count} Vorkommen ersetzt',
|
|
629
|
+
'status.words': 'Wörter',
|
|
630
|
+
'status.word': 'Wort',
|
|
631
|
+
'status.chars': 'Zeichen',
|
|
632
|
+
'status.char': 'Zeichen',
|
|
633
|
+
'autosave.savedLocally': 'Lokal gespeichert',
|
|
634
|
+
'autosave.autosaving': 'Speichern...',
|
|
635
|
+
'preview.title': 'Dokumentvorschau',
|
|
636
|
+
'confirm.clearAll': 'Gesamten Inhalt löschen?',
|
|
637
|
+
'color.reset': 'Zurücksetzen',
|
|
638
|
+
'color.pick': 'Farbe wählen',
|
|
639
|
+
'color.apply': 'Anwenden',
|
|
640
|
+
'placeholder': 'Hier schreiben...'
|
|
641
|
+
},
|
|
642
|
+
fr: {
|
|
643
|
+
'toolbar.undo': 'Annuler (Ctrl+Z)',
|
|
644
|
+
'toolbar.redo': 'Rétablir (Ctrl+Y)',
|
|
645
|
+
'toolbar.bold': 'Gras (Ctrl+B)',
|
|
646
|
+
'toolbar.italic': 'Italique (Ctrl+I)',
|
|
647
|
+
'toolbar.underline': 'Souligné (Ctrl+U)',
|
|
648
|
+
'toolbar.strikethrough': 'Barré',
|
|
649
|
+
'toolbar.heading': 'Titre',
|
|
650
|
+
'toolbar.fontSize': 'Taille de police',
|
|
651
|
+
'toolbar.fontFamily': 'Police',
|
|
652
|
+
'toolbar.foreColor': 'Couleur du texte',
|
|
653
|
+
'toolbar.backColor': 'Couleur de fond',
|
|
654
|
+
'toolbar.alignLeft': 'Aligner à gauche',
|
|
655
|
+
'toolbar.alignCenter': 'Centrer',
|
|
656
|
+
'toolbar.alignRight': 'Aligner à droite',
|
|
657
|
+
'toolbar.alignJustify': 'Justifier',
|
|
658
|
+
'toolbar.bulletList': 'Liste à puces',
|
|
659
|
+
'toolbar.numberedList': 'Liste numérotée',
|
|
660
|
+
'toolbar.indent': 'Augmenter le retrait',
|
|
661
|
+
'toolbar.outdent': 'Diminuer le retrait',
|
|
662
|
+
'toolbar.link': 'Insérer un lien (Ctrl+K)',
|
|
663
|
+
'toolbar.image': 'Insérer une image',
|
|
664
|
+
'toolbar.table': 'Insérer un tableau',
|
|
665
|
+
'toolbar.blockquote': 'Citation',
|
|
666
|
+
'toolbar.viewCode': 'Voir le code (HTML)',
|
|
667
|
+
'toolbar.horizontalRule': 'Ligne horizontale',
|
|
668
|
+
'toolbar.subscript': 'Indice',
|
|
669
|
+
'toolbar.superscript': 'Exposant',
|
|
670
|
+
'toolbar.removeFormat': 'Supprimer la mise en forme',
|
|
671
|
+
'toolbar.findReplace': 'Rechercher et remplacer',
|
|
672
|
+
'toolbar.emoji': 'Insérer un emoji',
|
|
673
|
+
'toolbar.specialChars': 'Caractères spéciaux',
|
|
674
|
+
'toolbar.fullscreen': 'Plein écran',
|
|
675
|
+
'toolbar.autosave': 'Sauvegarde automatique',
|
|
676
|
+
'toolbar.themeToggle': 'Changer de thème',
|
|
677
|
+
'toolbar.print': 'Imprimer',
|
|
678
|
+
'toolbar.insert': 'Insérer',
|
|
679
|
+
'toolbar.moreOptions': 'Plus d\'options',
|
|
680
|
+
'toolbar.decreaseFontSize': 'Réduire la taille de police',
|
|
681
|
+
'toolbar.increaseFontSize': 'Augmenter la taille de police',
|
|
682
|
+
'heading.paragraph': 'Paragraphe',
|
|
683
|
+
'heading.h1': 'Titre 1',
|
|
684
|
+
'heading.h2': 'Titre 2',
|
|
685
|
+
'heading.h3': 'Titre 3',
|
|
686
|
+
'heading.h4': 'Titre 4',
|
|
687
|
+
'heading.h5': 'Titre 5',
|
|
688
|
+
'heading.h6': 'Titre 6',
|
|
689
|
+
'font.sansSerif': 'Sans Serif',
|
|
690
|
+
'font.serif': 'Serif',
|
|
691
|
+
'font.monospace': 'Monospace',
|
|
692
|
+
'font.cursive': 'Cursive',
|
|
693
|
+
'insert.link': 'Lien',
|
|
694
|
+
'insert.image': 'Image',
|
|
695
|
+
'insert.table': 'Tableau',
|
|
696
|
+
'insert.emoji': 'Emoji',
|
|
697
|
+
'insert.symbol': 'Symbole',
|
|
698
|
+
'menu.save': 'Enregistrer',
|
|
699
|
+
'menu.preview': 'Aperçu',
|
|
700
|
+
'menu.download': 'Télécharger',
|
|
701
|
+
'menu.print': 'Imprimer',
|
|
702
|
+
'menu.autosave': 'Sauvegarde auto',
|
|
703
|
+
'menu.clearAll': 'Tout effacer',
|
|
704
|
+
'menu.toggleTheme': 'Changer de thème',
|
|
705
|
+
'menu.fullscreen': 'Plein écran',
|
|
706
|
+
'modal.insertLink': 'Insérer un lien',
|
|
707
|
+
'modal.url': 'URL',
|
|
708
|
+
'modal.text': 'Texte',
|
|
709
|
+
'modal.linkText': 'Texte du lien',
|
|
710
|
+
'modal.openInNewTab': 'Ouvrir dans un nouvel onglet',
|
|
711
|
+
'modal.cancel': 'Annuler',
|
|
712
|
+
'modal.insert': 'Insérer',
|
|
713
|
+
'modal.insertImage': 'Insérer une image',
|
|
714
|
+
'modal.uploadImage': 'Téléverser une image',
|
|
715
|
+
'modal.convertedToBase64': 'Sera converti en base64',
|
|
716
|
+
'modal.or': 'OU',
|
|
717
|
+
'modal.imageUrl': 'URL de l\'image',
|
|
718
|
+
'modal.altText': 'Texte alternatif',
|
|
719
|
+
'modal.describeImage': 'Décrire l\'image',
|
|
720
|
+
'modal.widthOptional': 'Largeur (optionnel)',
|
|
721
|
+
'modal.invalidImageFile': 'Veuillez sélectionner un fichier image valide.',
|
|
722
|
+
'modal.insertTable': 'Insérer un tableau',
|
|
723
|
+
'modal.rows': 'Lignes',
|
|
724
|
+
'modal.columns': 'Colonnes',
|
|
725
|
+
'modal.includeHeaderRow': 'Inclure la ligne d\'en-tête',
|
|
726
|
+
'modal.findReplace': 'Rechercher et remplacer',
|
|
727
|
+
'modal.find': 'Rechercher',
|
|
728
|
+
'modal.searchText': 'Texte à rechercher...',
|
|
729
|
+
'modal.replaceWith': 'Remplacer par',
|
|
730
|
+
'modal.replacementText': 'Texte de remplacement...',
|
|
731
|
+
'modal.useRegex': 'Utiliser une expression régulière',
|
|
732
|
+
'modal.caseSensitive': 'Sensible à la casse',
|
|
733
|
+
'modal.findNext': 'Suivant',
|
|
734
|
+
'modal.replace': 'Remplacer',
|
|
735
|
+
'modal.replaceAll': 'Tout remplacer',
|
|
736
|
+
'modal.invalidRegex': 'Expression régulière invalide',
|
|
737
|
+
'modal.matchesFound': '{count} correspondance(s) trouvée(s)',
|
|
738
|
+
'modal.matchOf': 'Correspondance {current} sur {total}',
|
|
739
|
+
'modal.matchesRemaining': '{count} correspondance(s) restante(s)',
|
|
740
|
+
'modal.replacedOccurrences': '{count} occurrence(s) remplacée(s)',
|
|
741
|
+
'status.words': 'mots',
|
|
742
|
+
'status.word': 'mot',
|
|
743
|
+
'status.chars': 'caractères',
|
|
744
|
+
'status.char': 'caractère',
|
|
745
|
+
'autosave.savedLocally': 'Enregistré localement',
|
|
746
|
+
'autosave.autosaving': 'Enregistrement...',
|
|
747
|
+
'preview.title': 'Aperçu du document',
|
|
748
|
+
'confirm.clearAll': 'Effacer tout le contenu ?',
|
|
749
|
+
'color.reset': 'Réinitialiser',
|
|
750
|
+
'color.pick': 'Choisir une couleur',
|
|
751
|
+
'color.apply': 'Appliquer',
|
|
752
|
+
'placeholder': 'Commencez à écrire...'
|
|
753
|
+
},
|
|
754
|
+
pt: {
|
|
755
|
+
'toolbar.undo': 'Desfazer (Ctrl+Z)',
|
|
756
|
+
'toolbar.redo': 'Refazer (Ctrl+Y)',
|
|
757
|
+
'toolbar.bold': 'Negrito (Ctrl+B)',
|
|
758
|
+
'toolbar.italic': 'Itálico (Ctrl+I)',
|
|
759
|
+
'toolbar.underline': 'Sublinhado (Ctrl+U)',
|
|
760
|
+
'toolbar.strikethrough': 'Tachado',
|
|
761
|
+
'toolbar.heading': 'Título',
|
|
762
|
+
'toolbar.fontSize': 'Tamanho da fonte',
|
|
763
|
+
'toolbar.fontFamily': 'Família da fonte',
|
|
764
|
+
'toolbar.foreColor': 'Cor do texto',
|
|
765
|
+
'toolbar.backColor': 'Cor de fundo',
|
|
766
|
+
'toolbar.alignLeft': 'Alinhar à esquerda',
|
|
767
|
+
'toolbar.alignCenter': 'Centralizar',
|
|
768
|
+
'toolbar.alignRight': 'Alinhar à direita',
|
|
769
|
+
'toolbar.alignJustify': 'Justificar',
|
|
770
|
+
'toolbar.bulletList': 'Lista com marcadores',
|
|
771
|
+
'toolbar.numberedList': 'Lista numerada',
|
|
772
|
+
'toolbar.indent': 'Aumentar recuo',
|
|
773
|
+
'toolbar.outdent': 'Diminuir recuo',
|
|
774
|
+
'toolbar.link': 'Inserir link (Ctrl+K)',
|
|
775
|
+
'toolbar.image': 'Inserir imagem',
|
|
776
|
+
'toolbar.table': 'Inserir tabela',
|
|
777
|
+
'toolbar.blockquote': 'Citação',
|
|
778
|
+
'toolbar.viewCode': 'Ver código (HTML)',
|
|
779
|
+
'toolbar.horizontalRule': 'Linha horizontal',
|
|
780
|
+
'toolbar.subscript': 'Subscrito',
|
|
781
|
+
'toolbar.superscript': 'Sobrescrito',
|
|
782
|
+
'toolbar.removeFormat': 'Remover formatação',
|
|
783
|
+
'toolbar.findReplace': 'Localizar e substituir',
|
|
784
|
+
'toolbar.emoji': 'Inserir emoji',
|
|
785
|
+
'toolbar.specialChars': 'Caracteres especiais',
|
|
786
|
+
'toolbar.fullscreen': 'Tela cheia',
|
|
787
|
+
'toolbar.autosave': 'Salvamento automático',
|
|
788
|
+
'toolbar.themeToggle': 'Alternar tema',
|
|
789
|
+
'toolbar.print': 'Imprimir',
|
|
790
|
+
'toolbar.insert': 'Inserir',
|
|
791
|
+
'toolbar.moreOptions': 'Mais opções',
|
|
792
|
+
'toolbar.decreaseFontSize': 'Diminuir fonte',
|
|
793
|
+
'toolbar.increaseFontSize': 'Aumentar fonte',
|
|
794
|
+
'heading.paragraph': 'Parágrafo',
|
|
795
|
+
'heading.h1': 'Título 1',
|
|
796
|
+
'heading.h2': 'Título 2',
|
|
797
|
+
'heading.h3': 'Título 3',
|
|
798
|
+
'heading.h4': 'Título 4',
|
|
799
|
+
'heading.h5': 'Título 5',
|
|
800
|
+
'heading.h6': 'Título 6',
|
|
801
|
+
'font.sansSerif': 'Sans Serif',
|
|
802
|
+
'font.serif': 'Serif',
|
|
803
|
+
'font.monospace': 'Monospace',
|
|
804
|
+
'font.cursive': 'Cursiva',
|
|
805
|
+
'insert.link': 'Link',
|
|
806
|
+
'insert.image': 'Imagem',
|
|
807
|
+
'insert.table': 'Tabela',
|
|
808
|
+
'insert.emoji': 'Emoji',
|
|
809
|
+
'insert.symbol': 'Símbolo',
|
|
810
|
+
'menu.save': 'Salvar',
|
|
811
|
+
'menu.preview': 'Visualizar',
|
|
812
|
+
'menu.download': 'Baixar',
|
|
813
|
+
'menu.print': 'Imprimir',
|
|
814
|
+
'menu.autosave': 'Salvamento automático',
|
|
815
|
+
'menu.clearAll': 'Limpar tudo',
|
|
816
|
+
'menu.toggleTheme': 'Alternar tema',
|
|
817
|
+
'menu.fullscreen': 'Tela cheia',
|
|
818
|
+
'modal.insertLink': 'Inserir link',
|
|
819
|
+
'modal.url': 'URL',
|
|
820
|
+
'modal.text': 'Texto',
|
|
821
|
+
'modal.linkText': 'Texto do link',
|
|
822
|
+
'modal.openInNewTab': 'Abrir em nova aba',
|
|
823
|
+
'modal.cancel': 'Cancelar',
|
|
824
|
+
'modal.insert': 'Inserir',
|
|
825
|
+
'modal.insertImage': 'Inserir imagem',
|
|
826
|
+
'modal.uploadImage': 'Enviar imagem',
|
|
827
|
+
'modal.convertedToBase64': 'Será convertido para base64',
|
|
828
|
+
'modal.or': 'OU',
|
|
829
|
+
'modal.imageUrl': 'URL da imagem',
|
|
830
|
+
'modal.altText': 'Texto alternativo',
|
|
831
|
+
'modal.describeImage': 'Descrever a imagem',
|
|
832
|
+
'modal.widthOptional': 'Largura (opcional)',
|
|
833
|
+
'modal.invalidImageFile': 'Por favor, selecione um arquivo de imagem válido.',
|
|
834
|
+
'modal.insertTable': 'Inserir tabela',
|
|
835
|
+
'modal.rows': 'Linhas',
|
|
836
|
+
'modal.columns': 'Colunas',
|
|
837
|
+
'modal.includeHeaderRow': 'Incluir linha de cabeçalho',
|
|
838
|
+
'modal.findReplace': 'Localizar e substituir',
|
|
839
|
+
'modal.find': 'Localizar',
|
|
840
|
+
'modal.searchText': 'Texto a localizar...',
|
|
841
|
+
'modal.replaceWith': 'Substituir por',
|
|
842
|
+
'modal.replacementText': 'Texto de substituição...',
|
|
843
|
+
'modal.useRegex': 'Usar expressão regular',
|
|
844
|
+
'modal.caseSensitive': 'Diferenciar maiúsculas',
|
|
845
|
+
'modal.findNext': 'Localizar próximo',
|
|
846
|
+
'modal.replace': 'Substituir',
|
|
847
|
+
'modal.replaceAll': 'Substituir tudo',
|
|
848
|
+
'modal.invalidRegex': 'Expressão regular inválida',
|
|
849
|
+
'modal.matchesFound': '{count} correspondência(s) encontrada(s)',
|
|
850
|
+
'modal.matchOf': 'Correspondência {current} de {total}',
|
|
851
|
+
'modal.matchesRemaining': '{count} correspondência(s) restante(s)',
|
|
852
|
+
'modal.replacedOccurrences': '{count} ocorrência(s) substituída(s)',
|
|
853
|
+
'status.words': 'palavras',
|
|
854
|
+
'status.word': 'palavra',
|
|
855
|
+
'status.chars': 'caracteres',
|
|
856
|
+
'status.char': 'caractere',
|
|
857
|
+
'autosave.savedLocally': 'Salvo localmente',
|
|
858
|
+
'autosave.autosaving': 'Salvando...',
|
|
859
|
+
'preview.title': 'Visualização do documento',
|
|
860
|
+
'confirm.clearAll': 'Limpar todo o conteúdo?',
|
|
861
|
+
'color.reset': 'Redefinir',
|
|
862
|
+
'color.pick': 'Escolher cor',
|
|
863
|
+
'color.apply': 'Aplicar',
|
|
864
|
+
'placeholder': 'Comece a digitar...'
|
|
865
|
+
},
|
|
866
|
+
ja: {
|
|
867
|
+
'toolbar.undo': '元に戻す (Ctrl+Z)',
|
|
868
|
+
'toolbar.redo': 'やり直し (Ctrl+Y)',
|
|
869
|
+
'toolbar.bold': '太字 (Ctrl+B)',
|
|
870
|
+
'toolbar.italic': '斜体 (Ctrl+I)',
|
|
871
|
+
'toolbar.underline': '下線 (Ctrl+U)',
|
|
872
|
+
'toolbar.strikethrough': '取り消し線',
|
|
873
|
+
'toolbar.heading': '見出し',
|
|
874
|
+
'toolbar.fontSize': 'フォントサイズ',
|
|
875
|
+
'toolbar.fontFamily': 'フォント',
|
|
876
|
+
'toolbar.foreColor': '文字色',
|
|
877
|
+
'toolbar.backColor': '背景色',
|
|
878
|
+
'toolbar.alignLeft': '左揃え',
|
|
879
|
+
'toolbar.alignCenter': '中央揃え',
|
|
880
|
+
'toolbar.alignRight': '右揃え',
|
|
881
|
+
'toolbar.alignJustify': '両端揃え',
|
|
882
|
+
'toolbar.bulletList': '箇条書き',
|
|
883
|
+
'toolbar.numberedList': '番号付きリスト',
|
|
884
|
+
'toolbar.indent': 'インデント増',
|
|
885
|
+
'toolbar.outdent': 'インデント減',
|
|
886
|
+
'toolbar.link': 'リンク挿入 (Ctrl+K)',
|
|
887
|
+
'toolbar.image': '画像挿入',
|
|
888
|
+
'toolbar.table': '表挿入',
|
|
889
|
+
'toolbar.blockquote': '引用',
|
|
890
|
+
'toolbar.viewCode': 'コード表示 (HTML)',
|
|
891
|
+
'toolbar.horizontalRule': '水平線',
|
|
892
|
+
'toolbar.subscript': '下付き',
|
|
893
|
+
'toolbar.superscript': '上付き',
|
|
894
|
+
'toolbar.removeFormat': '書式解除',
|
|
895
|
+
'toolbar.findReplace': '検索と置換',
|
|
896
|
+
'toolbar.emoji': '絵文字挿入',
|
|
897
|
+
'toolbar.specialChars': '特殊文字',
|
|
898
|
+
'toolbar.fullscreen': '全画面',
|
|
899
|
+
'toolbar.autosave': '自動保存',
|
|
900
|
+
'toolbar.themeToggle': 'テーマ切替',
|
|
901
|
+
'toolbar.print': '印刷',
|
|
902
|
+
'toolbar.insert': '挿入',
|
|
903
|
+
'toolbar.moreOptions': 'その他',
|
|
904
|
+
'toolbar.decreaseFontSize': 'フォント縮小',
|
|
905
|
+
'toolbar.increaseFontSize': 'フォント拡大',
|
|
906
|
+
'heading.paragraph': '段落',
|
|
907
|
+
'heading.h1': '見出し 1',
|
|
908
|
+
'heading.h2': '見出し 2',
|
|
909
|
+
'heading.h3': '見出し 3',
|
|
910
|
+
'heading.h4': '見出し 4',
|
|
911
|
+
'heading.h5': '見出し 5',
|
|
912
|
+
'heading.h6': '見出し 6',
|
|
913
|
+
'font.sansSerif': 'ゴシック',
|
|
914
|
+
'font.serif': '明朝',
|
|
915
|
+
'font.monospace': '等幅',
|
|
916
|
+
'font.cursive': '手書き',
|
|
917
|
+
'insert.link': 'リンク',
|
|
918
|
+
'insert.image': '画像',
|
|
919
|
+
'insert.table': '表',
|
|
920
|
+
'insert.emoji': '絵文字',
|
|
921
|
+
'insert.symbol': '記号',
|
|
922
|
+
'menu.save': '保存',
|
|
923
|
+
'menu.preview': 'プレビュー',
|
|
924
|
+
'menu.download': 'ダウンロード',
|
|
925
|
+
'menu.print': '印刷',
|
|
926
|
+
'menu.autosave': '自動保存',
|
|
927
|
+
'menu.clearAll': 'すべて消去',
|
|
928
|
+
'menu.toggleTheme': 'テーマ切替',
|
|
929
|
+
'menu.fullscreen': '全画面',
|
|
930
|
+
'modal.insertLink': 'リンク挿入',
|
|
931
|
+
'modal.url': 'URL',
|
|
932
|
+
'modal.text': 'テキスト',
|
|
933
|
+
'modal.linkText': 'リンクテキスト',
|
|
934
|
+
'modal.openInNewTab': '新しいタブで開く',
|
|
935
|
+
'modal.cancel': 'キャンセル',
|
|
936
|
+
'modal.insert': '挿入',
|
|
937
|
+
'modal.insertImage': '画像挿入',
|
|
938
|
+
'modal.uploadImage': '画像アップロード',
|
|
939
|
+
'modal.convertedToBase64': 'Base64に変換されます',
|
|
940
|
+
'modal.or': 'または',
|
|
941
|
+
'modal.imageUrl': '画像URL',
|
|
942
|
+
'modal.altText': '代替テキスト',
|
|
943
|
+
'modal.describeImage': '画像の説明',
|
|
944
|
+
'modal.widthOptional': '幅(任意)',
|
|
945
|
+
'modal.invalidImageFile': '有効な画像ファイルを選択してください。',
|
|
946
|
+
'modal.insertTable': '表挿入',
|
|
947
|
+
'modal.rows': '行',
|
|
948
|
+
'modal.columns': '列',
|
|
949
|
+
'modal.includeHeaderRow': 'ヘッダー行を含む',
|
|
950
|
+
'modal.findReplace': '検索と置換',
|
|
951
|
+
'modal.find': '検索',
|
|
952
|
+
'modal.searchText': '検索テキスト...',
|
|
953
|
+
'modal.replaceWith': '置換後',
|
|
954
|
+
'modal.replacementText': '置換テキスト...',
|
|
955
|
+
'modal.useRegex': '正規表現を使用',
|
|
956
|
+
'modal.caseSensitive': '大文字小文字を区別',
|
|
957
|
+
'modal.findNext': '次を検索',
|
|
958
|
+
'modal.replace': '置換',
|
|
959
|
+
'modal.replaceAll': 'すべて置換',
|
|
960
|
+
'modal.invalidRegex': '無効な正規表現',
|
|
961
|
+
'modal.matchesFound': '{count} 件見つかりました',
|
|
962
|
+
'modal.matchOf': '{total} 件中 {current} 件目',
|
|
963
|
+
'modal.matchesRemaining': '残り {count} 件',
|
|
964
|
+
'modal.replacedOccurrences': '{count} 件を置換しました',
|
|
965
|
+
'status.words': '語',
|
|
966
|
+
'status.word': '語',
|
|
967
|
+
'status.chars': '文字',
|
|
968
|
+
'status.char': '文字',
|
|
969
|
+
'autosave.savedLocally': 'ローカルに保存済み',
|
|
970
|
+
'autosave.autosaving': '保存中...',
|
|
971
|
+
'preview.title': 'ドキュメントプレビュー',
|
|
972
|
+
'confirm.clearAll': 'すべての内容を消去しますか?',
|
|
973
|
+
'color.reset': 'デフォルトに戻す',
|
|
974
|
+
'color.pick': '色を選択',
|
|
975
|
+
'color.apply': '適用',
|
|
976
|
+
'placeholder': '入力してください...'
|
|
298
977
|
}
|
|
299
978
|
};
|
|
300
979
|
|
|
@@ -1338,9 +2017,12 @@
|
|
|
1338
2017
|
|
|
1339
2018
|
const picker = Utils.createElement('div', { className: 'neiki-color-picker' });
|
|
1340
2019
|
|
|
2020
|
+
// Color grid
|
|
2021
|
+
const grid = Utils.createElement('div', { className: 'neiki-color-grid' });
|
|
2022
|
+
|
|
1341
2023
|
const resetSwatch = Utils.createElement('div', {
|
|
1342
2024
|
className: 'neiki-color-swatch neiki-color-reset',
|
|
1343
|
-
title: '
|
|
2025
|
+
title: t('color.reset')
|
|
1344
2026
|
});
|
|
1345
2027
|
resetSwatch.addEventListener('mousedown', (e) => {
|
|
1346
2028
|
e.preventDefault();
|
|
@@ -1352,7 +2034,7 @@
|
|
|
1352
2034
|
}
|
|
1353
2035
|
this.close();
|
|
1354
2036
|
});
|
|
1355
|
-
|
|
2037
|
+
grid.appendChild(resetSwatch);
|
|
1356
2038
|
|
|
1357
2039
|
COLORS.forEach(color => {
|
|
1358
2040
|
const swatch = Utils.createElement('div', {
|
|
@@ -1370,10 +2052,96 @@
|
|
|
1370
2052
|
}
|
|
1371
2053
|
this.close();
|
|
1372
2054
|
});
|
|
1373
|
-
|
|
2055
|
+
grid.appendChild(swatch);
|
|
2056
|
+
});
|
|
2057
|
+
|
|
2058
|
+
picker.appendChild(grid);
|
|
2059
|
+
|
|
2060
|
+
// Custom color section
|
|
2061
|
+
const customRow = Utils.createElement('div', { className: 'neiki-color-custom' });
|
|
2062
|
+
|
|
2063
|
+
const colorInput = Utils.createElement('input', {
|
|
2064
|
+
className: 'neiki-color-custom-input',
|
|
2065
|
+
type: 'color',
|
|
2066
|
+
value: '#000000',
|
|
2067
|
+
title: t('color.pick')
|
|
2068
|
+
});
|
|
2069
|
+
|
|
2070
|
+
const hexInput = Utils.createElement('input', {
|
|
2071
|
+
className: 'neiki-color-hex-input',
|
|
2072
|
+
type: 'text',
|
|
2073
|
+
value: '#000000',
|
|
2074
|
+
placeholder: '#hex',
|
|
2075
|
+
maxLength: 7
|
|
2076
|
+
});
|
|
2077
|
+
|
|
2078
|
+
const applyBtn = Utils.createElement('button', {
|
|
2079
|
+
className: 'neiki-color-apply-btn',
|
|
2080
|
+
type: 'button'
|
|
2081
|
+
});
|
|
2082
|
+
applyBtn.textContent = t('color.apply');
|
|
2083
|
+
|
|
2084
|
+
// Sync color input → hex input
|
|
2085
|
+
colorInput.addEventListener('input', (e) => {
|
|
2086
|
+
hexInput.value = e.target.value;
|
|
2087
|
+
});
|
|
2088
|
+
|
|
2089
|
+
// Sync hex input → color input
|
|
2090
|
+
hexInput.addEventListener('input', (e) => {
|
|
2091
|
+
const val = e.target.value;
|
|
2092
|
+
if (/^#[0-9A-Fa-f]{6}$/.test(val)) {
|
|
2093
|
+
colorInput.value = val;
|
|
2094
|
+
}
|
|
2095
|
+
});
|
|
2096
|
+
|
|
2097
|
+
const applyColor = (e) => {
|
|
2098
|
+
e.preventDefault();
|
|
2099
|
+
e.stopPropagation();
|
|
2100
|
+
let color = hexInput.value.trim();
|
|
2101
|
+
if (!/^#/.test(color)) color = '#' + color;
|
|
2102
|
+
if (/^#[0-9A-Fa-f]{6}$/.test(color)) {
|
|
2103
|
+
if (command === 'foreColor') {
|
|
2104
|
+
this.editor.commands.foreColor(color);
|
|
2105
|
+
} else {
|
|
2106
|
+
this.editor.commands.backColor(color);
|
|
2107
|
+
}
|
|
2108
|
+
this.close();
|
|
2109
|
+
}
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
applyBtn.addEventListener('mousedown', applyColor);
|
|
2113
|
+
hexInput.addEventListener('keydown', (e) => {
|
|
2114
|
+
if (e.key === 'Enter') applyColor(e);
|
|
2115
|
+
});
|
|
2116
|
+
|
|
2117
|
+
customRow.appendChild(colorInput);
|
|
2118
|
+
customRow.appendChild(hexInput);
|
|
2119
|
+
customRow.appendChild(applyBtn);
|
|
2120
|
+
picker.appendChild(customRow);
|
|
2121
|
+
|
|
2122
|
+
// Prevent clicks inside picker from propagating to toolbar button
|
|
2123
|
+
picker.addEventListener('mousedown', (e) => {
|
|
2124
|
+
e.stopPropagation();
|
|
2125
|
+
});
|
|
2126
|
+
picker.addEventListener('click', (e) => {
|
|
2127
|
+
e.stopPropagation();
|
|
1374
2128
|
});
|
|
1375
2129
|
|
|
1376
2130
|
button.appendChild(picker);
|
|
2131
|
+
|
|
2132
|
+
// Smart positioning: flip to right-aligned if overflowing viewport
|
|
2133
|
+
requestAnimationFrame(() => {
|
|
2134
|
+
const rect = picker.getBoundingClientRect();
|
|
2135
|
+
if (rect.right > window.innerWidth) {
|
|
2136
|
+
picker.style.left = 'auto';
|
|
2137
|
+
picker.style.right = '0';
|
|
2138
|
+
}
|
|
2139
|
+
if (rect.left < 0) {
|
|
2140
|
+
picker.style.left = '0';
|
|
2141
|
+
picker.style.right = 'auto';
|
|
2142
|
+
}
|
|
2143
|
+
});
|
|
2144
|
+
|
|
1377
2145
|
this.activePicker = picker;
|
|
1378
2146
|
this.activeButton = button;
|
|
1379
2147
|
}
|
|
@@ -2418,6 +3186,36 @@
|
|
|
2418
3186
|
}
|
|
2419
3187
|
}
|
|
2420
3188
|
|
|
3189
|
+
// Exit blockquote at end of document
|
|
3190
|
+
if (e.key === 'Enter' && !e.shiftKey && !e.ctrlKey && !e.metaKey) {
|
|
3191
|
+
const sel = window.getSelection();
|
|
3192
|
+
if (sel.rangeCount) {
|
|
3193
|
+
const node = sel.anchorNode;
|
|
3194
|
+
const bq = node.nodeType === Node.TEXT_NODE
|
|
3195
|
+
? node.parentElement?.closest('blockquote')
|
|
3196
|
+
: node.closest?.('blockquote');
|
|
3197
|
+
if (bq && bq === this.contentArea.lastElementChild) {
|
|
3198
|
+
const range = sel.getRangeAt(0);
|
|
3199
|
+
const bqRange = document.createRange();
|
|
3200
|
+
bqRange.selectNodeContents(bq);
|
|
3201
|
+
bqRange.setStart(range.endContainer, range.endOffset);
|
|
3202
|
+
if (bqRange.toString().trim() === '') {
|
|
3203
|
+
e.preventDefault();
|
|
3204
|
+
const p = document.createElement('p');
|
|
3205
|
+
p.innerHTML = '<br>';
|
|
3206
|
+
bq.after(p);
|
|
3207
|
+
const newRange = document.createRange();
|
|
3208
|
+
newRange.setStart(p, 0);
|
|
3209
|
+
newRange.collapse(true);
|
|
3210
|
+
sel.removeAllRanges();
|
|
3211
|
+
sel.addRange(newRange);
|
|
3212
|
+
this.history.record();
|
|
3213
|
+
this.triggerChange();
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
|
|
2421
3219
|
// Tab handling
|
|
2422
3220
|
if (e.key === 'Tab') {
|
|
2423
3221
|
e.preventDefault();
|
|
@@ -3127,12 +3925,14 @@
|
|
|
3127
3925
|
|
|
3128
3926
|
this.contentArea.addEventListener('dragenter', (e) => {
|
|
3129
3927
|
e.preventDefault();
|
|
3928
|
+
if (!e.dataTransfer.types.includes('Files')) return;
|
|
3130
3929
|
dragCounter++;
|
|
3131
3930
|
this.contentArea.classList.add('neiki-drag-over');
|
|
3132
3931
|
});
|
|
3133
3932
|
|
|
3134
3933
|
this.contentArea.addEventListener('dragleave', (e) => {
|
|
3135
3934
|
e.preventDefault();
|
|
3935
|
+
if (!e.dataTransfer.types.includes('Files')) return;
|
|
3136
3936
|
dragCounter--;
|
|
3137
3937
|
if (dragCounter === 0) {
|
|
3138
3938
|
this.contentArea.classList.remove('neiki-drag-over');
|