vditor 3.11.0 → 3.11.2
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/LICENSE +1 -1
- package/README.md +3 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +140 -26
- package/dist/index.min.js +1 -1
- package/dist/js/i18n/de_DE.js +86 -0
- package/dist/js/i18n/en_US.js +2 -2
- package/dist/js/i18n/es_ES.js +86 -0
- package/dist/js/i18n/vi_VN.js +86 -0
- package/dist/js/icons/ant.js +1 -1
- package/dist/js/icons/material.js +1 -1
- package/dist/js/lute/lute.min.js +72 -71
- package/dist/method.js +11 -5
- package/dist/method.min.js +1 -1
- package/dist/types/index.d.ts +34 -3
- package/package.json +1 -1
- package/src/index.ts +9 -4
- package/src/ts/markdown/previewRender.ts +1 -1
- package/src/ts/upload/index.ts +6 -4
- package/src/ts/util/fixBrowserBehavior.ts +75 -7
- package/src/ts/util/selection.ts +7 -2
- package/src/ts/wysiwyg/highlightToolbarWYSIWYG.ts +19 -4
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
window.VditorI18n = {
|
|
2
|
+
'alignCenter': 'Zentriert',
|
|
3
|
+
'alignLeft': 'Linksbündig',
|
|
4
|
+
'alignRight': 'Rechtsbündig',
|
|
5
|
+
'alternateText': 'Alternativtext',
|
|
6
|
+
'bold': 'Fett',
|
|
7
|
+
'both': 'Editor & Vorschau',
|
|
8
|
+
'cancelUpload': 'Upload abbrechen',
|
|
9
|
+
'check': 'Aufgabenliste',
|
|
10
|
+
'close': 'Schließen',
|
|
11
|
+
'code': 'Codeblock',
|
|
12
|
+
'code-theme': 'Codeblock-Thema',
|
|
13
|
+
'column': 'Spalte',
|
|
14
|
+
'comment': 'Kommentar',
|
|
15
|
+
'confirm': 'Bestätigen',
|
|
16
|
+
'content-theme': 'Inhalts-Thema',
|
|
17
|
+
'copied': 'Kopiert',
|
|
18
|
+
'copy': 'Kopieren',
|
|
19
|
+
'delete-column': 'Spalte löschen',
|
|
20
|
+
'delete-row': 'Zeile löschen',
|
|
21
|
+
'devtools': 'Entwicklertools',
|
|
22
|
+
'down': 'Nach unten',
|
|
23
|
+
'downloadTip': 'Der Browser unterstützt die Download-Funktion nicht',
|
|
24
|
+
'edit': 'Bearbeiten',
|
|
25
|
+
'edit-mode': 'Bearbeitungsmodus umschalten',
|
|
26
|
+
'emoji': 'Emoji',
|
|
27
|
+
'export': 'Exportieren',
|
|
28
|
+
'fileTypeError': 'Dateityp-Fehler',
|
|
29
|
+
'footnoteRef': 'Fußnotenverweis',
|
|
30
|
+
'fullscreen': 'Vollbild umschalten',
|
|
31
|
+
'generate': 'Wird generiert',
|
|
32
|
+
'headings': 'Überschriften',
|
|
33
|
+
'heading1': 'Überschrift 1',
|
|
34
|
+
'heading2': 'Überschrift 2',
|
|
35
|
+
'heading3': 'Überschrift 3',
|
|
36
|
+
'heading4': 'Überschrift 4',
|
|
37
|
+
'heading5': 'Überschrift 5',
|
|
38
|
+
'heading6': 'Überschrift 6',
|
|
39
|
+
'help': 'Hilfe',
|
|
40
|
+
'imageURL': 'Bild-URL',
|
|
41
|
+
'indent': 'Einrücken',
|
|
42
|
+
'info': 'Info',
|
|
43
|
+
'inline-code': 'Inline-Code',
|
|
44
|
+
'insert-after': 'Zeile danach einfügen',
|
|
45
|
+
'insert-before': 'Zeile davor einfügen',
|
|
46
|
+
'insertColumnLeft': 'Spalte links einfügen',
|
|
47
|
+
'insertColumnRight': 'Spalte rechts einfügen',
|
|
48
|
+
'insertRowAbove': 'Zeile oberhalb einfügen',
|
|
49
|
+
'insertRowBelow': 'Zeile unterhalb einfügen',
|
|
50
|
+
'instantRendering': 'Sofort-Darstellung',
|
|
51
|
+
'italic': 'Kursiv',
|
|
52
|
+
'language': 'Sprache',
|
|
53
|
+
'line': 'Zeile',
|
|
54
|
+
'link': 'Link',
|
|
55
|
+
'linkRef': 'Link-Verweis',
|
|
56
|
+
'list': 'Liste',
|
|
57
|
+
'more': 'Mehr',
|
|
58
|
+
'nameEmpty': 'Name ist leer',
|
|
59
|
+
'ordered-list': 'Nummerierte Liste',
|
|
60
|
+
'outdent': 'Ausrücken',
|
|
61
|
+
'outline': 'Gliederung',
|
|
62
|
+
'over': 'über',
|
|
63
|
+
'performanceTip': 'Echtzeit-Vorschau benötigt ${x}ms, Sie können diese deaktivieren',
|
|
64
|
+
'preview': 'Vorschau',
|
|
65
|
+
'quote': 'Zitat',
|
|
66
|
+
'record': 'Aufnahme starten/beenden',
|
|
67
|
+
'record-tip': 'Das Gerät unterstützt keine Aufzeichnung',
|
|
68
|
+
'recording': 'Aufzeichnung läuft...',
|
|
69
|
+
'redo': 'Wiederholen',
|
|
70
|
+
'remove': 'Entfernen',
|
|
71
|
+
'row': 'Zeile',
|
|
72
|
+
'spin': 'Rotation',
|
|
73
|
+
'splitView': 'Geteilte Ansicht',
|
|
74
|
+
'strike': 'Durchgestrichen',
|
|
75
|
+
'table': 'Tabelle',
|
|
76
|
+
'textIsNotEmpty': 'Text (nicht leer)',
|
|
77
|
+
'title': 'Titel',
|
|
78
|
+
'tooltipText': 'Tooltip-Text',
|
|
79
|
+
'undo': 'Rückgängig',
|
|
80
|
+
'up': 'Nach oben',
|
|
81
|
+
'update': 'Aktualisieren',
|
|
82
|
+
'upload': 'Bild oder Datei hochladen',
|
|
83
|
+
'uploadError': 'Upload-Fehler',
|
|
84
|
+
'uploading': 'Upload läuft...',
|
|
85
|
+
'wysiwyg': 'WYSIWYG',
|
|
86
|
+
}
|
package/dist/js/i18n/en_US.js
CHANGED
|
@@ -16,8 +16,8 @@ window.VditorI18n = {
|
|
|
16
16
|
'content-theme': 'Content Theme Preview',
|
|
17
17
|
'copied': 'Copied',
|
|
18
18
|
'copy': 'Copy',
|
|
19
|
-
'delete-column': 'Delete
|
|
20
|
-
'delete-row': 'Delete
|
|
19
|
+
'delete-column': 'Delete Column',
|
|
20
|
+
'delete-row': 'Delete Row',
|
|
21
21
|
'devtools': 'DevTools',
|
|
22
22
|
'down': 'Down',
|
|
23
23
|
'downloadTip': 'The browser does not support the download function',
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
window.VditorI18n = {
|
|
2
|
+
'alignCenter': 'Centrar',
|
|
3
|
+
'alignLeft': 'Alinear a la izquierda',
|
|
4
|
+
'alignRight': 'Alinear a la derecha',
|
|
5
|
+
'alternateText': 'Texto alternativo',
|
|
6
|
+
'bold': 'Negrita',
|
|
7
|
+
'both': 'Editar y previsualizar',
|
|
8
|
+
'cancelUpload': 'Cancelar subida',
|
|
9
|
+
'check': 'Lista de tareas',
|
|
10
|
+
'close': 'Cerrar',
|
|
11
|
+
'code': 'Bloque de código',
|
|
12
|
+
'code-theme': 'Vista previa del tema de código',
|
|
13
|
+
'column': 'Columna',
|
|
14
|
+
'comment': 'Comentario',
|
|
15
|
+
'confirm': 'Confirmar',
|
|
16
|
+
'content-theme': 'Vista previa del tema de contenido',
|
|
17
|
+
'copied': 'Copiado',
|
|
18
|
+
'copy': 'Copiar',
|
|
19
|
+
'delete-column': 'Eliminar columna',
|
|
20
|
+
'delete-row': 'Eliminar fila',
|
|
21
|
+
'devtools': 'Herramientas de desarrollo',
|
|
22
|
+
'down': 'Abajo',
|
|
23
|
+
'downloadTip': 'Este navegador no soporta la función de descarga',
|
|
24
|
+
'edit': 'Editar',
|
|
25
|
+
'edit-mode': 'Cambiar modo de edición',
|
|
26
|
+
'emoji': 'Emoticono',
|
|
27
|
+
'export': 'Exportar',
|
|
28
|
+
'fileTypeError': 'Tipo de archivo no permitido, comprímelo antes de subirlo',
|
|
29
|
+
'footnoteRef': 'Referencia de nota al pie',
|
|
30
|
+
'fullscreen': 'Pantalla completa',
|
|
31
|
+
'generate': 'Generando',
|
|
32
|
+
'headings': 'Encabezados',
|
|
33
|
+
'heading1': 'Encabezado 1',
|
|
34
|
+
'heading2': 'Encabezado 2',
|
|
35
|
+
'heading3': 'Encabezado 3',
|
|
36
|
+
'heading4': 'Encabezado 4',
|
|
37
|
+
'heading5': 'Encabezado 5',
|
|
38
|
+
'heading6': 'Encabezado 6',
|
|
39
|
+
'help': 'Ayuda',
|
|
40
|
+
'imageURL': 'URL de imagen',
|
|
41
|
+
'indent': 'Sangría de lista',
|
|
42
|
+
'info': 'Información',
|
|
43
|
+
'inline-code': 'Código en línea',
|
|
44
|
+
'insert-after': 'Insertar fila al final',
|
|
45
|
+
'insert-before': 'Insertar fila al inicio',
|
|
46
|
+
'insertColumnLeft': 'Insertar columna a la izquierda',
|
|
47
|
+
'insertColumnRight': 'Insertar columna a la derecha',
|
|
48
|
+
'insertRowAbove': 'Insertar fila arriba',
|
|
49
|
+
'insertRowBelow': 'Insertar fila abajo',
|
|
50
|
+
'instantRendering': 'Renderizado instantáneo',
|
|
51
|
+
'italic': 'Cursiva',
|
|
52
|
+
'language': 'Idioma',
|
|
53
|
+
'line': 'Línea divisoria',
|
|
54
|
+
'link': 'Enlace',
|
|
55
|
+
'linkRef': 'Identificador de referencia',
|
|
56
|
+
'list': 'Lista desordenada',
|
|
57
|
+
'more': 'Más',
|
|
58
|
+
'nameEmpty': 'El nombre de archivo no puede estar vacío',
|
|
59
|
+
'ordered-list': 'Lista ordenada',
|
|
60
|
+
'outdent': 'Reducir sangría',
|
|
61
|
+
'outline': 'Esquema',
|
|
62
|
+
'over': 'Sobrepasar',
|
|
63
|
+
'performanceTip': 'La vista previa en tiempo real necesita ${x}ms, puedes hacer clic en el botón Editar y Previsualizar para desactivarla',
|
|
64
|
+
'preview': 'Vista previa',
|
|
65
|
+
'quote': 'Cita',
|
|
66
|
+
'record': 'Iniciar/Grabar grabación',
|
|
67
|
+
'record-tip': 'Este dispositivo no soporta grabación',
|
|
68
|
+
'recording': 'Grabando...',
|
|
69
|
+
'redo': 'Rehacer',
|
|
70
|
+
'remove': 'Eliminar',
|
|
71
|
+
'row': 'Fila',
|
|
72
|
+
'spin': 'Girar',
|
|
73
|
+
'splitView': 'Vista dividida',
|
|
74
|
+
'strike': 'Tachado',
|
|
75
|
+
'table': 'Tabla',
|
|
76
|
+
'textIsNotEmpty': 'Texto (no puede estar vacío)',
|
|
77
|
+
'title': 'Título',
|
|
78
|
+
'tooltipText': 'Texto de tooltip',
|
|
79
|
+
'undo': 'Deshacer',
|
|
80
|
+
'up': 'Arriba',
|
|
81
|
+
'update': 'Actualizar',
|
|
82
|
+
'upload': 'Subir imagen o archivo',
|
|
83
|
+
'uploadError': 'Error al subir',
|
|
84
|
+
'uploading': 'Subiendo...',
|
|
85
|
+
'wysiwyg': 'WYSIWYG',
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
window.VditorI18n = {
|
|
2
|
+
'alignCenter': 'Căn giữa',
|
|
3
|
+
'alignLeft': 'Căn trái',
|
|
4
|
+
'alignRight': 'Căn phải',
|
|
5
|
+
'alternateText': 'Văn bản thay thế',
|
|
6
|
+
'bold': 'In đậm',
|
|
7
|
+
'both': 'Chỉnh sửa & Xem trước',
|
|
8
|
+
'cancelUpload': 'Hủy tải lên',
|
|
9
|
+
'check': 'Danh sách công việc',
|
|
10
|
+
'close': 'Đóng',
|
|
11
|
+
'code': 'Khối mã',
|
|
12
|
+
'code-theme': 'Xem trước chủ đề khối mã',
|
|
13
|
+
'column': 'Cột',
|
|
14
|
+
'comment': 'Bình luận',
|
|
15
|
+
'confirm': 'Xác nhận',
|
|
16
|
+
'content-theme': 'Xem trước chủ đề nội dung',
|
|
17
|
+
'copied': 'Đã sao chép',
|
|
18
|
+
'copy': 'Sao chép',
|
|
19
|
+
'delete-column': 'Xóa cột',
|
|
20
|
+
'delete-row': 'Xóa hàng',
|
|
21
|
+
'devtools': 'Công cụ phát triển',
|
|
22
|
+
'down': 'Xuống',
|
|
23
|
+
'downloadTip': 'Trình duyệt này không hỗ trợ tính năng tải xuống',
|
|
24
|
+
'edit': 'Chỉnh sửa',
|
|
25
|
+
'edit-mode': 'Chuyển chế độ chỉnh sửa',
|
|
26
|
+
'emoji': 'Biểu tượng cảm xúc',
|
|
27
|
+
'export': 'Xuất',
|
|
28
|
+
'fileTypeError': 'Loại tệp không được phép tải lên, vui lòng nén lại trước khi thử',
|
|
29
|
+
'footnoteRef': 'Chú thích cuối trang',
|
|
30
|
+
'fullscreen': 'Chuyển toàn màn hình',
|
|
31
|
+
'generate': 'Đang tạo',
|
|
32
|
+
'headings': 'Tiêu đề',
|
|
33
|
+
'heading1': 'Tiêu đề cấp 1',
|
|
34
|
+
'heading2': 'Tiêu đề cấp 2',
|
|
35
|
+
'heading3': 'Tiêu đề cấp 3',
|
|
36
|
+
'heading4': 'Tiêu đề cấp 4',
|
|
37
|
+
'heading5': 'Tiêu đề cấp 5',
|
|
38
|
+
'heading6': 'Tiêu đề cấp 6',
|
|
39
|
+
'help': 'Trợ giúp',
|
|
40
|
+
'imageURL': 'Địa chỉ hình ảnh',
|
|
41
|
+
'indent': 'Thụt lề danh sách',
|
|
42
|
+
'info': 'Thông tin',
|
|
43
|
+
'inline-code': 'Mã nội dòng',
|
|
44
|
+
'insert-after': 'Chèn hàng ở cuối',
|
|
45
|
+
'insert-before': 'Chèn hàng ở đầu',
|
|
46
|
+
'insertColumnLeft': 'Chèn cột bên trái',
|
|
47
|
+
'insertColumnRight': 'Chèn cột bên phải',
|
|
48
|
+
'insertRowAbove': 'Chèn hàng phía trên',
|
|
49
|
+
'insertRowBelow': 'Chèn hàng phía dưới',
|
|
50
|
+
'instantRendering': 'Hiển thị tức thì',
|
|
51
|
+
'italic': 'In nghiêng',
|
|
52
|
+
'language': 'Ngôn ngữ',
|
|
53
|
+
'line': 'Đường phân cách',
|
|
54
|
+
'link': 'Liên kết',
|
|
55
|
+
'linkRef': 'Định danh tham chiếu',
|
|
56
|
+
'list': 'Danh sách không thứ tự',
|
|
57
|
+
'more': 'Thêm',
|
|
58
|
+
'nameEmpty': 'Tên tệp không được để trống',
|
|
59
|
+
'ordered-list': 'Danh sách có thứ tự',
|
|
60
|
+
'outdent': 'Thụt lề ngược',
|
|
61
|
+
'outline': 'Dàn ý',
|
|
62
|
+
'over': 'Vượt quá',
|
|
63
|
+
'performanceTip': 'Xem trước thời gian thực cần ${x}ms, có thể nhấp vào nút Chỉnh sửa & Xem trước để tắt',
|
|
64
|
+
'preview': 'Xem trước',
|
|
65
|
+
'quote': 'Trích dẫn',
|
|
66
|
+
'record': 'Bắt đầu ghi âm/Dừng ghi âm',
|
|
67
|
+
'record-tip': 'Thiết bị này không hỗ trợ tính năng ghi âm',
|
|
68
|
+
'recording': 'Đang ghi âm...',
|
|
69
|
+
'redo': 'Làm lại',
|
|
70
|
+
'remove': 'Xóa',
|
|
71
|
+
'row': 'Hàng',
|
|
72
|
+
'spin': 'Xoay',
|
|
73
|
+
'splitView': 'Xem chia màn hình',
|
|
74
|
+
'strike': 'Gạch ngang',
|
|
75
|
+
'table': 'Bảng',
|
|
76
|
+
'textIsNotEmpty': 'Văn bản (không được để trống)',
|
|
77
|
+
'title': 'Tiêu đề',
|
|
78
|
+
'tooltipText': 'Văn bản chú thích',
|
|
79
|
+
'undo': 'Hoàn tác',
|
|
80
|
+
'up': 'Lên',
|
|
81
|
+
'update': 'Cập nhật',
|
|
82
|
+
'upload': 'Tải lên hình ảnh hoặc tệp',
|
|
83
|
+
'uploadError': 'Lỗi tải lên',
|
|
84
|
+
'uploading': 'Đang tải lên...',
|
|
85
|
+
'wysiwyg': 'WYSIWYG',
|
|
86
|
+
}
|
package/dist/js/icons/ant.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
document.body.insertAdjacentHTML('
|
|
1
|
+
document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<defs>
|
|
3
3
|
<symbol id="vditor-icon-comment" viewBox="0 0 32 32">
|
|
4
4
|
<path d="M18.177 12.965c-0.825 0-1.464 0.639-1.464 1.428s0.639 1.428 1.464 1.428c0.754 0 1.393-0.639 1.393-1.428s-0.639-1.428-1.393-1.428zM8.178 12.965c-0.825 0-1.464 0.639-1.464 1.428s0.639 1.428 1.464 1.428c0.754 0 1.393-0.639 1.393-1.428s-0.639-1.428-1.393-1.428z"></path>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
document.body.insertAdjacentHTML('
|
|
1
|
+
document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<defs>
|
|
3
3
|
<symbol id="vditor-icon-comment" viewBox="0 0 32 32">
|
|
4
4
|
<path d="M28.8 24.272l-1.872-1.872h-23.728v-19.2h25.6v21.072zM28.8 0h-25.6c-1.76 0-3.2 1.44-3.2 3.2v19.2c0 1.76 1.44 3.2 3.2 3.2h22.4l6.4 6.4v-28.8c0-1.76-1.44-3.2-3.2-3.2z"></path>
|