@licium/editor 3.2.3
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 +176 -0
- package/dist/esm/i18n/__test__/integration/ui/layout.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/integration/ui/toolbar.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/integration/vdom/render.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/integration/widget/widgetNode.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/convertor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/dom.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/editor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/eventEmitter.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/helper/common.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/helper/image.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/linkXss.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/keymap.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/mdCommand.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/mdEditor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/mdPreview.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/smartTask.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/syntaxHighlight.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/util.d.ts +7 -0
- package/dist/esm/i18n/__test__/unit/repro_3296.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/sanitizer.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/utils/escape.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/utils/pollution.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/vdom/template.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/viewer.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/customBlock.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/helper/pasteMsoList.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/imageInsertion.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/keymap.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwCommand.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwEditor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwTableCommand.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwToDOMAdaptor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/xssSanitizer.spec.d.ts +1 -0
- package/dist/esm/i18n/ar.d.ts +1 -0
- package/dist/esm/i18n/ar.js +63 -0
- package/dist/esm/i18n/base.d.ts +60 -0
- package/dist/esm/i18n/commands/commandManager.d.ts +16 -0
- package/dist/esm/i18n/commands/defaultCommands.d.ts +2 -0
- package/dist/esm/i18n/commands/wwCommands.d.ts +2 -0
- package/dist/esm/i18n/convertors/convertor.d.ts +19 -0
- package/dist/esm/i18n/convertors/toMarkdown/toMdConvertorState.d.ts +30 -0
- package/dist/esm/i18n/convertors/toMarkdown/toMdConvertors.d.ts +7 -0
- package/dist/esm/i18n/convertors/toMarkdown/toMdNodeTypeWriters.d.ts +8 -0
- package/dist/esm/i18n/convertors/toWysiwyg/htmlToWwConvertors.d.ts +7 -0
- package/dist/esm/i18n/convertors/toWysiwyg/toWwConvertorState.d.ts +23 -0
- package/dist/esm/i18n/convertors/toWysiwyg/toWwConvertors.d.ts +4 -0
- package/dist/esm/i18n/cs-cz.d.ts +1 -0
- package/dist/esm/i18n/cs-cz.js +63 -0
- package/dist/esm/i18n/de-de.d.ts +1 -0
- package/dist/esm/i18n/de-de.js +63 -0
- package/dist/esm/i18n/editor.d.ts +36 -0
- package/dist/esm/i18n/editorCore.d.ts +330 -0
- package/dist/esm/i18n/en-us.d.ts +1 -0
- package/dist/esm/i18n/en-us.js +63 -0
- package/dist/esm/i18n/es-es.d.ts +1 -0
- package/dist/esm/i18n/es-es.js +63 -0
- package/dist/esm/i18n/esm/index.d.ts +5 -0
- package/dist/esm/i18n/esm/indexViewer.d.ts +2 -0
- package/dist/esm/i18n/event/eventEmitter.d.ts +73 -0
- package/dist/esm/i18n/fi-fi.d.ts +1 -0
- package/dist/esm/i18n/fi-fi.js +63 -0
- package/dist/esm/i18n/fr-fr.d.ts +1 -0
- package/dist/esm/i18n/fr-fr.js +63 -0
- package/dist/esm/i18n/gl-es.d.ts +5 -0
- package/dist/esm/i18n/gl-es.js +63 -0
- package/dist/esm/i18n/helper/image.d.ts +4 -0
- package/dist/esm/i18n/helper/manipulation.d.ts +16 -0
- package/dist/esm/i18n/helper/plugin.d.ts +3 -0
- package/dist/esm/i18n/hr-hr.d.ts +1 -0
- package/dist/esm/i18n/hr-hr.js +63 -0
- package/dist/esm/i18n/i18n.d.ts +20 -0
- package/dist/esm/i18n/i18n.js +217 -0
- package/dist/esm/i18n/index.d.ts +10 -0
- package/dist/esm/i18n/indexEditorOnlyStyle.d.ts +3 -0
- package/dist/esm/i18n/indexViewer.d.ts +3 -0
- package/dist/esm/i18n/it-it.d.ts +1 -0
- package/dist/esm/i18n/it-it.js +63 -0
- package/dist/esm/i18n/ja-jp.d.ts +1 -0
- package/dist/esm/i18n/ja-jp.js +63 -0
- package/dist/esm/i18n/ko-kr.d.ts +1 -0
- package/dist/esm/i18n/ko-kr.js +63 -0
- package/dist/esm/i18n/markdown/helper/list.d.ts +55 -0
- package/dist/esm/i18n/markdown/helper/mdCommand.d.ts +5 -0
- package/dist/esm/i18n/markdown/helper/pos.d.ts +22 -0
- package/dist/esm/i18n/markdown/helper/query.d.ts +3 -0
- package/dist/esm/i18n/markdown/htmlRenderConvertors.d.ts +5 -0
- package/dist/esm/i18n/markdown/marks/blockQuote.d.ts +19 -0
- package/dist/esm/i18n/markdown/marks/code.d.ts +25 -0
- package/dist/esm/i18n/markdown/marks/codeBlock.d.ts +18 -0
- package/dist/esm/i18n/markdown/marks/customBlock.d.ts +10 -0
- package/dist/esm/i18n/markdown/marks/emph.d.ts +17 -0
- package/dist/esm/i18n/markdown/marks/heading.d.ts +23 -0
- package/dist/esm/i18n/markdown/marks/html.d.ts +8 -0
- package/dist/esm/i18n/markdown/marks/link.d.ts +29 -0
- package/dist/esm/i18n/markdown/marks/listItem.d.ts +42 -0
- package/dist/esm/i18n/markdown/marks/simpleMark.d.ts +32 -0
- package/dist/esm/i18n/markdown/marks/strike.d.ts +14 -0
- package/dist/esm/i18n/markdown/marks/strong.d.ts +18 -0
- package/dist/esm/i18n/markdown/marks/table.d.ts +27 -0
- package/dist/esm/i18n/markdown/marks/thematicBreak.d.ts +17 -0
- package/dist/esm/i18n/markdown/mdEditor.d.ts +48 -0
- package/dist/esm/i18n/markdown/mdPreview.d.ts +50 -0
- package/dist/esm/i18n/markdown/nodes/doc.d.ts +7 -0
- package/dist/esm/i18n/markdown/nodes/paragraph.d.ts +46 -0
- package/dist/esm/i18n/markdown/nodes/text.d.ts +7 -0
- package/dist/esm/i18n/markdown/plugins/helper/markInfo.d.ts +19 -0
- package/dist/esm/i18n/markdown/plugins/previewHighlight.d.ts +3 -0
- package/dist/esm/i18n/markdown/plugins/smartTask.d.ts +3 -0
- package/dist/esm/i18n/markdown/plugins/syntaxHighlight.d.ts +3 -0
- package/dist/esm/i18n/markdown/scroll/animation.d.ts +2 -0
- package/dist/esm/i18n/markdown/scroll/dom.d.ts +16 -0
- package/dist/esm/i18n/markdown/scroll/offset.d.ts +9 -0
- package/dist/esm/i18n/markdown/scroll/scrollSync.d.ts +30 -0
- package/dist/esm/i18n/nb-no.d.ts +1 -0
- package/dist/esm/i18n/nb-no.js +63 -0
- package/dist/esm/i18n/nl-nl.d.ts +1 -0
- package/dist/esm/i18n/nl-nl.js +63 -0
- package/dist/esm/i18n/pl-pl.d.ts +1 -0
- package/dist/esm/i18n/pl-pl.js +63 -0
- package/dist/esm/i18n/plugins/dropImage.d.ts +3 -0
- package/dist/esm/i18n/plugins/placeholder.d.ts +7 -0
- package/dist/esm/i18n/plugins/popupWidget.d.ts +3 -0
- package/dist/esm/i18n/pt-br.d.ts +1 -0
- package/dist/esm/i18n/pt-br.js +63 -0
- package/dist/esm/i18n/queries/queryManager.d.ts +2 -0
- package/dist/esm/i18n/ru-ru.d.ts +1 -0
- package/dist/esm/i18n/ru-ru.js +64 -0
- package/dist/esm/i18n/sanitizer/htmlSanitizer.d.ts +3 -0
- package/dist/esm/i18n/spec/mark.d.ts +12 -0
- package/dist/esm/i18n/spec/node.d.ts +12 -0
- package/dist/esm/i18n/spec/specManager.d.ts +16 -0
- package/dist/esm/i18n/sv-se.d.ts +1 -0
- package/dist/esm/i18n/sv-se.js +63 -0
- package/dist/esm/i18n/tr-tr.d.ts +1 -0
- package/dist/esm/i18n/tr-tr.js +63 -0
- package/dist/esm/i18n/ui/components/contextMenu.d.ts +21 -0
- package/dist/esm/i18n/ui/components/layout.d.ts +36 -0
- package/dist/esm/i18n/ui/components/popup.d.ts +21 -0
- package/dist/esm/i18n/ui/components/switch.d.ts +17 -0
- package/dist/esm/i18n/ui/components/tabs.d.ts +12 -0
- package/dist/esm/i18n/ui/components/toolbar/customPopupBody.d.ts +16 -0
- package/dist/esm/i18n/ui/components/toolbar/headingPopupBody.d.ts +12 -0
- package/dist/esm/i18n/ui/components/toolbar/imagePopupBody.d.ts +30 -0
- package/dist/esm/i18n/ui/components/toolbar/linkPopupBody.d.ts +18 -0
- package/dist/esm/i18n/ui/components/toolbar/tablePopupBody.d.ts +29 -0
- package/dist/esm/i18n/ui/components/toolbar/toolbar.d.ts +45 -0
- package/dist/esm/i18n/ui/components/toolbar/toolbarGroup.d.ts +21 -0
- package/dist/esm/i18n/ui/toolbarItemFactory.d.ts +13 -0
- package/dist/esm/i18n/ui/vdom/commit.d.ts +2 -0
- package/dist/esm/i18n/ui/vdom/component.d.ts +10 -0
- package/dist/esm/i18n/ui/vdom/dom.d.ts +6 -0
- package/dist/esm/i18n/ui/vdom/render.d.ts +4 -0
- package/dist/esm/i18n/ui/vdom/renderer.d.ts +4 -0
- package/dist/esm/i18n/ui/vdom/template.d.ts +3 -0
- package/dist/esm/i18n/ui/vdom/vnode.d.ts +30 -0
- package/dist/esm/i18n/uk-ua.d.ts +1 -0
- package/dist/esm/i18n/uk-ua.js +63 -0
- package/dist/esm/i18n/utils/common.d.ts +19 -0
- package/dist/esm/i18n/utils/constants.d.ts +8 -0
- package/dist/esm/i18n/utils/dom.d.ts +25 -0
- package/dist/esm/i18n/utils/map.d.ts +19 -0
- package/dist/esm/i18n/utils/markdown.d.ts +23 -0
- package/dist/esm/i18n/viewer.d.ts +77 -0
- package/dist/esm/i18n/widget/rules.d.ts +28 -0
- package/dist/esm/i18n/widget/widgetNode.d.ts +28 -0
- package/dist/esm/i18n/wysiwyg/adaptor/mdLikeNode.d.ts +5 -0
- package/dist/esm/i18n/wysiwyg/adaptor/wwToDOMAdaptor.d.ts +13 -0
- package/dist/esm/i18n/wysiwyg/clipboard/paste.d.ts +6 -0
- package/dist/esm/i18n/wysiwyg/clipboard/pasteMsoList.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/clipboard/pasteTextParser.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/clipboard/pasteToTable.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/command/list.d.ts +7 -0
- package/dist/esm/i18n/wysiwyg/command/table.d.ts +16 -0
- package/dist/esm/i18n/wysiwyg/helper/node.d.ts +37 -0
- package/dist/esm/i18n/wysiwyg/helper/table.d.ts +25 -0
- package/dist/esm/i18n/wysiwyg/helper/tableOffsetMap.d.ts +88 -0
- package/dist/esm/i18n/wysiwyg/markdownInputRules.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/marks/code.d.ts +31 -0
- package/dist/esm/i18n/wysiwyg/marks/emph.d.ts +34 -0
- package/dist/esm/i18n/wysiwyg/marks/link.d.ts +59 -0
- package/dist/esm/i18n/wysiwyg/marks/strike.d.ts +31 -0
- package/dist/esm/i18n/wysiwyg/marks/strong.d.ts +34 -0
- package/dist/esm/i18n/wysiwyg/nodes/blockQuote.d.ts +33 -0
- package/dist/esm/i18n/wysiwyg/nodes/bulletList.d.ts +43 -0
- package/dist/esm/i18n/wysiwyg/nodes/codeBlock.d.ts +45 -0
- package/dist/esm/i18n/wysiwyg/nodes/customBlock.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/doc.d.ts +7 -0
- package/dist/esm/i18n/wysiwyg/nodes/frontMatter.d.ts +21 -0
- package/dist/esm/i18n/wysiwyg/nodes/hardBreak.d.ts +14 -0
- package/dist/esm/i18n/wysiwyg/nodes/heading.d.ts +38 -0
- package/dist/esm/i18n/wysiwyg/nodes/html.d.ts +11 -0
- package/dist/esm/i18n/wysiwyg/nodes/htmlComment.d.ts +21 -0
- package/dist/esm/i18n/wysiwyg/nodes/image.d.ts +45 -0
- package/dist/esm/i18n/wysiwyg/nodes/listItem.d.ts +36 -0
- package/dist/esm/i18n/wysiwyg/nodes/orderedList.d.ts +39 -0
- package/dist/esm/i18n/wysiwyg/nodes/paragraph.d.ts +21 -0
- package/dist/esm/i18n/wysiwyg/nodes/table.d.ts +80 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableBody.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableBodyCell.d.ts +36 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableHead.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableHeadCell.d.ts +39 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableRow.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/text.d.ts +14 -0
- package/dist/esm/i18n/wysiwyg/nodes/thematicBreak.d.ts +33 -0
- package/dist/esm/i18n/wysiwyg/nodeview/codeBlockView.d.ts +29 -0
- package/dist/esm/i18n/wysiwyg/nodeview/customBlockView.d.ts +29 -0
- package/dist/esm/i18n/wysiwyg/nodeview/imageView.d.ts +20 -0
- package/dist/esm/i18n/wysiwyg/plugins/selection/cellSelection.d.ts +14 -0
- package/dist/esm/i18n/wysiwyg/plugins/selection/tableSelection.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/plugins/selection/tableSelectionView.d.ts +19 -0
- package/dist/esm/i18n/wysiwyg/plugins/tableContextMenu.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/plugins/task.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/plugins/toolbarState.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/specCreator.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/wwEditor.d.ts +57 -0
- package/dist/esm/i18n/zh-cn.d.ts +1 -0
- package/dist/esm/i18n/zh-cn.js +63 -0
- package/dist/esm/i18n/zh-tw.d.ts +1 -0
- package/dist/esm/i18n/zh-tw.js +63 -0
- package/dist/esm/index.js +25133 -0
- package/dist/esm/indexViewer.js +12757 -0
- package/dist/i18n/ar.js +162 -0
- package/dist/i18n/cs-cz.js +162 -0
- package/dist/i18n/de-de.js +162 -0
- package/dist/i18n/es-es.js +162 -0
- package/dist/i18n/fi-fi.js +162 -0
- package/dist/i18n/fr-fr.js +162 -0
- package/dist/i18n/gl-es.js +162 -0
- package/dist/i18n/hr-hr.js +162 -0
- package/dist/i18n/it-it.js +162 -0
- package/dist/i18n/ja-jp.js +162 -0
- package/dist/i18n/ko-kr.js +162 -0
- package/dist/i18n/nb-no.js +162 -0
- package/dist/i18n/nl-nl.js +162 -0
- package/dist/i18n/pl-pl.js +162 -0
- package/dist/i18n/pt-br.js +162 -0
- package/dist/i18n/ru-ru.js +163 -0
- package/dist/i18n/sv-se.js +162 -0
- package/dist/i18n/tr-tr.js +162 -0
- package/dist/i18n/uk-ua.js +162 -0
- package/dist/i18n/zh-cn.js +162 -0
- package/dist/i18n/zh-tw.js +162 -0
- package/dist/theme/toastui-editor-dark.css +474 -0
- package/dist/toastui-editor-only.css +1068 -0
- package/dist/toastui-editor-viewer.css +492 -0
- package/dist/toastui-editor-viewer.js +14079 -0
- package/dist/toastui-editor.css +1606 -0
- package/dist/toastui-editor.js +26464 -0
- package/package.json +95 -0
- package/types/convertor.d.ts +143 -0
- package/types/editor.d.ts +383 -0
- package/types/event.d.ts +56 -0
- package/types/index.d.ts +70 -0
- package/types/map.d.ts +8 -0
- package/types/markdown.d.ts +60 -0
- package/types/plugin.d.ts +59 -0
- package/types/prosemirror-commands.d.ts +15 -0
- package/types/prosemirror-model.d.ts +15 -0
- package/types/prosemirror-transform.d.ts +35 -0
- package/types/spec.d.ts +42 -0
- package/types/toastmark.d.ts +357 -0
- package/types/toastui-editor-viewer.d.ts +39 -0
- package/types/ui.d.ts +165 -0
- package/types/wysiwyg.d.ts +36 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @licium/editor : i18n
|
|
3
|
+
* @version 3.2.3 | Fri Jan 02 2026
|
|
4
|
+
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Editor from '@licium/editor';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @fileoverview I18N for German
|
|
12
|
+
* @author Jann-Niklas Kiepert <jannkiepert@vivaldi.net>
|
|
13
|
+
*/
|
|
14
|
+
Editor.setLanguage(['de', 'de-DE'], {
|
|
15
|
+
Markdown: 'Markdown',
|
|
16
|
+
WYSIWYG: 'WYSIWYG',
|
|
17
|
+
Write: 'Verfassen',
|
|
18
|
+
Preview: 'Vorschau',
|
|
19
|
+
Headings: 'Überschriften',
|
|
20
|
+
Paragraph: 'Text',
|
|
21
|
+
Bold: 'Fett',
|
|
22
|
+
Italic: 'Kursiv',
|
|
23
|
+
Strike: 'Durchgestrichen',
|
|
24
|
+
Code: 'Code',
|
|
25
|
+
Line: 'Trennlinie',
|
|
26
|
+
Blockquote: 'Blocktext',
|
|
27
|
+
'Unordered list': 'Aufzählung',
|
|
28
|
+
'Ordered list': 'Nummerierte Aufzählung',
|
|
29
|
+
Task: 'Aufgabe',
|
|
30
|
+
Indent: 'Einrücken',
|
|
31
|
+
Outdent: 'Ausrücken',
|
|
32
|
+
'Insert link': 'Link einfügen',
|
|
33
|
+
'Insert CodeBlock': 'Codeblock einfügen',
|
|
34
|
+
'Insert table': 'Tabelle einfügen',
|
|
35
|
+
'Insert image': 'Grafik einfügen',
|
|
36
|
+
Heading: 'Titel',
|
|
37
|
+
'Image URL': 'Bild URL',
|
|
38
|
+
'Select image file': 'Grafik auswählen',
|
|
39
|
+
'Choose a file': 'Wähle eine Datei',
|
|
40
|
+
'No file': 'Keine Datei',
|
|
41
|
+
Description: 'Beschreibung',
|
|
42
|
+
OK: 'OK',
|
|
43
|
+
More: 'Mehr',
|
|
44
|
+
Cancel: 'Abbrechen',
|
|
45
|
+
File: 'Datei',
|
|
46
|
+
URL: 'URL',
|
|
47
|
+
'Link text': 'Anzuzeigender Text',
|
|
48
|
+
'Add row to up': 'Zeile nach oben hinzufügen',
|
|
49
|
+
'Add row to down': 'Zeile nach unten hinzufügen',
|
|
50
|
+
'Add column to left': 'Spalte links hinzufügen',
|
|
51
|
+
'Add column to right': 'Spalte rechts hinzufügen',
|
|
52
|
+
'Remove row': 'Zeile entfernen',
|
|
53
|
+
'Remove column': 'Spalte entfernen',
|
|
54
|
+
'Align column to left': 'Links ausrichten',
|
|
55
|
+
'Align column to center': 'Zentrieren',
|
|
56
|
+
'Align column to right': 'Rechts ausrichten',
|
|
57
|
+
'Remove table': 'Tabelle entfernen',
|
|
58
|
+
'Would you like to paste as table?': 'Möchten Sie eine Tabelle einfügen?',
|
|
59
|
+
'Text color': 'Textfarbe',
|
|
60
|
+
'Auto scroll enabled': 'Autoscrollen aktiviert',
|
|
61
|
+
'Auto scroll disabled': 'Autoscrollen deaktiviert',
|
|
62
|
+
'Choose language': 'Sprache auswählen',
|
|
63
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EditorOptions, ViewerOptions } from '@t/editor';
|
|
2
|
+
import { IndexList, ToolbarItemOptions } from '@t/ui';
|
|
3
|
+
import EditorCore from './editorCore';
|
|
4
|
+
import Viewer from './viewer';
|
|
5
|
+
/**
|
|
6
|
+
* ToastUI Editor
|
|
7
|
+
* @extends ToastUIEditorCore
|
|
8
|
+
*/
|
|
9
|
+
declare class ToastUIEditor extends EditorCore {
|
|
10
|
+
private defaultUI;
|
|
11
|
+
constructor(options: EditorOptions);
|
|
12
|
+
/**
|
|
13
|
+
* Factory method for Editor
|
|
14
|
+
* @param {object} options Option for initialize TUIEditor
|
|
15
|
+
* @returns {object} ToastUIEditor or ToastUIEditorViewer
|
|
16
|
+
*/
|
|
17
|
+
static factory(options: (EditorOptions | ViewerOptions) & {
|
|
18
|
+
viewer?: boolean;
|
|
19
|
+
}): Viewer | ToastUIEditor;
|
|
20
|
+
/**
|
|
21
|
+
* add toolbar item
|
|
22
|
+
* @param {Object} indexInfo group index and item index of the toolbar item
|
|
23
|
+
* @param {string|Object} item toolbar item
|
|
24
|
+
*/
|
|
25
|
+
insertToolbarItem(indexInfo: IndexList, item: string | ToolbarItemOptions): void;
|
|
26
|
+
/**
|
|
27
|
+
* Remove toolbar item
|
|
28
|
+
* @param {string} itemName toolbar item name
|
|
29
|
+
*/
|
|
30
|
+
removeToolbarItem(itemName: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* Destroy TUIEditor from document
|
|
33
|
+
*/
|
|
34
|
+
destroy(): void;
|
|
35
|
+
}
|
|
36
|
+
export default ToastUIEditor;
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { Emitter, Handler } from '@t/event';
|
|
2
|
+
import { EditorOptions, EditorPos, EditorType, PreviewStyle, ViewerOptions, WidgetStyle } from '@t/editor';
|
|
3
|
+
import { PluginInfoResult, CommandFn } from '@t/plugin';
|
|
4
|
+
import Viewer from './viewer';
|
|
5
|
+
/**
|
|
6
|
+
* ToastUIEditorCore
|
|
7
|
+
* @param {Object} options Option object
|
|
8
|
+
* @param {HTMLElement} options.el - container element
|
|
9
|
+
* @param {string} [options.height='300px'] - Editor's height style value. Height is applied as border-box ex) '300px', '100%', 'auto'
|
|
10
|
+
* @param {string} [options.minHeight='200px'] - Editor's min-height style value in pixel ex) '300px'
|
|
11
|
+
* @param {string} [options.initialValue] - Editor's initial value
|
|
12
|
+
* @param {string} [options.previewStyle] - Markdown editor's preview style (tab, vertical)
|
|
13
|
+
* @param {boolean} [options.previewHighlight = true] - Highlight a preview element corresponds to the cursor position in the markdown editor
|
|
14
|
+
* @param {string} [options.initialEditType] - Initial editor type (markdown, wysiwyg)
|
|
15
|
+
* @param {Object} [options.events] - Events
|
|
16
|
+
* @param {function} [options.events.load] - It would be emitted when editor fully load
|
|
17
|
+
* @param {function} [options.events.change] - It would be emitted when content changed
|
|
18
|
+
* @param {function} [options.events.caretChange] - It would be emitted when format change by cursor position
|
|
19
|
+
* @param {function} [options.events.focus] - It would be emitted when editor get focus
|
|
20
|
+
* @param {function} [options.events.blur] - It would be emitted when editor loose focus
|
|
21
|
+
* @param {function} [options.events.keydown] - It would be emitted when the key is pressed in editor
|
|
22
|
+
* @param {function} [options.events.keyup] - It would be emitted when the key is released in editor
|
|
23
|
+
* @param {function} [options.events.beforePreviewRender] - It would be emitted before rendering the markdown preview with html string
|
|
24
|
+
* @param {function} [options.events.beforeConvertWysiwygToMarkdown] - It would be emitted before converting wysiwyg to markdown with markdown text
|
|
25
|
+
* @param {Object} [options.hooks] - Hooks
|
|
26
|
+
* @param {addImageBlobHook} [options.hooks.addImageBlobHook] - hook for image upload
|
|
27
|
+
* @param {string} [options.language='en-US'] - language
|
|
28
|
+
* @param {boolean} [options.useCommandShortcut=true] - whether use keyboard shortcuts to perform commands
|
|
29
|
+
* @param {boolean} [options.usageStatistics=true] - send hostname to google analytics
|
|
30
|
+
* @param {Array.<string|toolbarItemsValue>} [options.toolbarItems] - toolbar items.
|
|
31
|
+
* @param {boolean} [options.hideModeSwitch=false] - hide mode switch tab bar
|
|
32
|
+
* @param {Array.<function|Array>} [options.plugins] - Array of plugins. A plugin can be either a function or an array in the form of [function, options].
|
|
33
|
+
* @param {Object} [options.extendedAutolinks] - Using extended Autolinks specified in GFM spec
|
|
34
|
+
* @param {string} [options.placeholder] - The placeholder text of the editable element.
|
|
35
|
+
* @param {Object} [options.linkAttributes] - Attributes of anchor element that should be rel, target, hreflang, type
|
|
36
|
+
* @param {Object} [options.customHTMLRenderer=null] - Object containing custom renderer functions correspond to change markdown node to preview HTML or wysiwyg node
|
|
37
|
+
* @param {Object} [options.customMarkdownRenderer=null] - Object containing custom renderer functions correspond to change wysiwyg node to markdown text
|
|
38
|
+
* @param {boolean} [options.referenceDefinition=false] - whether use the specification of link reference definition
|
|
39
|
+
* @param {function} [options.customHTMLSanitizer=null] - custom HTML sanitizer
|
|
40
|
+
* @param {boolean} [options.previewHighlight=false] - whether highlight preview area
|
|
41
|
+
* @param {boolean} [options.frontMatter=false] - whether use the front matter
|
|
42
|
+
* @param {Array.<object>} [options.widgetRules=[]] - The rules for replacing the text with widget node
|
|
43
|
+
* @param {string} [options.theme] - The theme to style the editor with. The default is included in toastui-editor.css.
|
|
44
|
+
* @param {autofocus} [options.autofocus=true] - automatically focus the editor on creation.
|
|
45
|
+
*/
|
|
46
|
+
declare class ToastUIEditorCore {
|
|
47
|
+
private initialHTML;
|
|
48
|
+
private toastMark;
|
|
49
|
+
private mdEditor;
|
|
50
|
+
private wwEditor;
|
|
51
|
+
private preview;
|
|
52
|
+
private convertor;
|
|
53
|
+
private commandManager;
|
|
54
|
+
private height;
|
|
55
|
+
private minHeight;
|
|
56
|
+
private mode;
|
|
57
|
+
private mdPreviewStyle;
|
|
58
|
+
private i18n;
|
|
59
|
+
private scrollSync;
|
|
60
|
+
private placeholder?;
|
|
61
|
+
eventEmitter: Emitter;
|
|
62
|
+
protected options: Required<EditorOptions>;
|
|
63
|
+
protected pluginInfo: PluginInfoResult;
|
|
64
|
+
constructor(options: EditorOptions);
|
|
65
|
+
private addInitEvent;
|
|
66
|
+
private addInitCommand;
|
|
67
|
+
private getCurrentModeEditor;
|
|
68
|
+
/**
|
|
69
|
+
* Factory method for Editor
|
|
70
|
+
* @param {object} options Option for initialize TUIEditor
|
|
71
|
+
* @returns {object} ToastUIEditorCore or ToastUIEditorViewer
|
|
72
|
+
*/
|
|
73
|
+
static factory(options: (EditorOptions | ViewerOptions) & {
|
|
74
|
+
viewer?: boolean;
|
|
75
|
+
}): Viewer | ToastUIEditorCore;
|
|
76
|
+
/**
|
|
77
|
+
* Set language
|
|
78
|
+
* @param {string|string[]} code - code for I18N language
|
|
79
|
+
* @param {object} data - language set
|
|
80
|
+
*/
|
|
81
|
+
static setLanguage(code: string | string[], data: Record<string, string>): void;
|
|
82
|
+
/**
|
|
83
|
+
* change preview style
|
|
84
|
+
* @param {string} style - 'tab'|'vertical'
|
|
85
|
+
*/
|
|
86
|
+
changePreviewStyle(style: PreviewStyle): void;
|
|
87
|
+
/**
|
|
88
|
+
* execute editor command
|
|
89
|
+
* @param {string} name - command name
|
|
90
|
+
* @param {object} [payload] - payload for command
|
|
91
|
+
*/
|
|
92
|
+
exec(name: string, payload?: Record<string, any>): void;
|
|
93
|
+
/**
|
|
94
|
+
* @param {string} type - editor type
|
|
95
|
+
* @param {string} name - command name
|
|
96
|
+
* @param {function} command - command handler
|
|
97
|
+
*/
|
|
98
|
+
addCommand(type: EditorType, name: string, command: CommandFn): void;
|
|
99
|
+
/**
|
|
100
|
+
* Bind eventHandler to event type
|
|
101
|
+
* @param {string} type Event type
|
|
102
|
+
* @param {function} handler Event handler
|
|
103
|
+
*/
|
|
104
|
+
on(type: string, handler: Handler): void;
|
|
105
|
+
/**
|
|
106
|
+
* Unbind eventHandler from event type
|
|
107
|
+
* @param {string} type Event type
|
|
108
|
+
*/
|
|
109
|
+
off(type: string): void;
|
|
110
|
+
/**
|
|
111
|
+
* Add hook to TUIEditor event
|
|
112
|
+
* @param {string} type Event type
|
|
113
|
+
* @param {function} handler Event handler
|
|
114
|
+
*/
|
|
115
|
+
addHook(type: string, handler: Handler): void;
|
|
116
|
+
/**
|
|
117
|
+
* Remove hook from TUIEditor event
|
|
118
|
+
* @param {string} type Event type
|
|
119
|
+
*/
|
|
120
|
+
removeHook(type: string): void;
|
|
121
|
+
/**
|
|
122
|
+
* Set focus to current Editor
|
|
123
|
+
*/
|
|
124
|
+
focus(): void;
|
|
125
|
+
/**
|
|
126
|
+
* Remove focus of current Editor
|
|
127
|
+
*/
|
|
128
|
+
blur(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Set cursor position to end
|
|
131
|
+
* @param {boolean} [focus] - automatically focus the editor
|
|
132
|
+
*/
|
|
133
|
+
moveCursorToEnd(focus?: boolean): void;
|
|
134
|
+
/**
|
|
135
|
+
* Set cursor position to start
|
|
136
|
+
* @param {boolean} [focus] - automatically focus the editor
|
|
137
|
+
*/
|
|
138
|
+
moveCursorToStart(focus?: boolean): void;
|
|
139
|
+
/**
|
|
140
|
+
* Set markdown syntax text.
|
|
141
|
+
* @param {string} markdown - markdown syntax text.
|
|
142
|
+
* @param {boolean} [cursorToEnd=true] - move cursor to contents end
|
|
143
|
+
*/
|
|
144
|
+
setMarkdown(markdown?: string, cursorToEnd?: boolean, addToHistory?: boolean): void;
|
|
145
|
+
/**
|
|
146
|
+
* Set html value.
|
|
147
|
+
* @param {string} html - html syntax text
|
|
148
|
+
* @param {boolean} [cursorToEnd=true] - move cursor to contents end
|
|
149
|
+
*/
|
|
150
|
+
setHTML(html?: string, cursorToEnd?: boolean, addToHistory?: boolean): void;
|
|
151
|
+
/**
|
|
152
|
+
* Get content to markdown
|
|
153
|
+
* @returns {string} markdown text
|
|
154
|
+
*/
|
|
155
|
+
getMarkdown(): string;
|
|
156
|
+
/**
|
|
157
|
+
* Get content to html
|
|
158
|
+
* @returns {string} html string
|
|
159
|
+
*/
|
|
160
|
+
getHTML(): string;
|
|
161
|
+
/**
|
|
162
|
+
* Insert text
|
|
163
|
+
* @param {string} text - text content
|
|
164
|
+
*/
|
|
165
|
+
insertText(text: string): void;
|
|
166
|
+
/**
|
|
167
|
+
* Set selection range
|
|
168
|
+
* @param {number|Array.<number>} start - start position
|
|
169
|
+
* @param {number|Array.<number>} end - end position
|
|
170
|
+
*/
|
|
171
|
+
setSelection(start: EditorPos, end?: EditorPos): void;
|
|
172
|
+
/**
|
|
173
|
+
* Replace selection range with given text content
|
|
174
|
+
* @param {string} text - text content
|
|
175
|
+
* @param {number|Array.<number>} [start] - start position
|
|
176
|
+
* @param {number|Array.<number>} [end] - end position
|
|
177
|
+
*/
|
|
178
|
+
replaceSelection(text: string, start?: EditorPos, end?: EditorPos): void;
|
|
179
|
+
/**
|
|
180
|
+
* Delete the content of selection range
|
|
181
|
+
* @param {number|Array.<number>} [start] - start position
|
|
182
|
+
* @param {number|Array.<number>} [end] - end position
|
|
183
|
+
*/
|
|
184
|
+
deleteSelection(start?: EditorPos, end?: EditorPos): void;
|
|
185
|
+
/**
|
|
186
|
+
* Get selected text content
|
|
187
|
+
* @param {number|Array.<number>} [start] - start position
|
|
188
|
+
* @param {number|Array.<number>} [end] - end position
|
|
189
|
+
* @returns {string} - selected text content
|
|
190
|
+
*/
|
|
191
|
+
getSelectedText(start?: EditorPos, end?: EditorPos): string;
|
|
192
|
+
/**
|
|
193
|
+
* Get range of the node
|
|
194
|
+
* @param {number|Array.<number>} [pos] - position
|
|
195
|
+
* @returns {Array.<number[]>|Array.<number>} - node [start, end] range
|
|
196
|
+
* @example
|
|
197
|
+
* // Markdown mode
|
|
198
|
+
* const rangeInfo = editor.getRangeInfoOfNode();
|
|
199
|
+
*
|
|
200
|
+
* console.log(rangeInfo); // { range: [[startLineOffset, startCurorOffset], [endLineOffset, endCurorOffset]], type: 'emph' }
|
|
201
|
+
*
|
|
202
|
+
* // WYSIWYG mode
|
|
203
|
+
* const rangeInfo = editor.getRangeInfoOfNode();
|
|
204
|
+
*
|
|
205
|
+
* console.log(rangeInfo); // { range: [startCursorOffset, endCursorOffset], type: 'emph' }
|
|
206
|
+
*/
|
|
207
|
+
getRangeInfoOfNode(pos?: EditorPos): import("@t/editor").NodeRangeInfo;
|
|
208
|
+
/**
|
|
209
|
+
* Add widget to selection
|
|
210
|
+
* @param {Node} node - widget node
|
|
211
|
+
* @param {string} style - Adding style "top" or "bottom"
|
|
212
|
+
* @param {number|Array.<number>} [pos] - position
|
|
213
|
+
*/
|
|
214
|
+
addWidget(node: Node, style: WidgetStyle, pos?: EditorPos): void;
|
|
215
|
+
/**
|
|
216
|
+
* Replace node with widget to range
|
|
217
|
+
* @param {number|Array.<number>} start - start position
|
|
218
|
+
* @param {number|Array.<number>} end - end position
|
|
219
|
+
* @param {string} text - widget text content
|
|
220
|
+
*/
|
|
221
|
+
replaceWithWidget(start: EditorPos, end: EditorPos, text: string): void;
|
|
222
|
+
/**
|
|
223
|
+
* Set editor height
|
|
224
|
+
* @param {string} height - editor height in pixel
|
|
225
|
+
*/
|
|
226
|
+
setHeight(height: string): void;
|
|
227
|
+
/**
|
|
228
|
+
* Get editor height
|
|
229
|
+
* @returns {string} editor height in pixel
|
|
230
|
+
*/
|
|
231
|
+
getHeight(): string;
|
|
232
|
+
/**
|
|
233
|
+
* Set minimum height to editor content
|
|
234
|
+
* @param {string} minHeight - min content height in pixel
|
|
235
|
+
*/
|
|
236
|
+
setMinHeight(minHeight: string): void;
|
|
237
|
+
/**
|
|
238
|
+
* Get minimum height of editor content
|
|
239
|
+
* @returns {string} min height in pixel
|
|
240
|
+
*/
|
|
241
|
+
getMinHeight(): string;
|
|
242
|
+
/**
|
|
243
|
+
* Return true if current editor mode is Markdown
|
|
244
|
+
* @returns {boolean}
|
|
245
|
+
*/
|
|
246
|
+
isMarkdownMode(): boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Return true if current editor mode is WYSIWYG
|
|
249
|
+
* @returns {boolean}
|
|
250
|
+
*/
|
|
251
|
+
isWysiwygMode(): boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Return false
|
|
254
|
+
* @returns {boolean}
|
|
255
|
+
*/
|
|
256
|
+
isViewer(): boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Get current Markdown editor's preview style
|
|
259
|
+
* @returns {string}
|
|
260
|
+
*/
|
|
261
|
+
getCurrentPreviewStyle(): PreviewStyle;
|
|
262
|
+
/**
|
|
263
|
+
* Change editor's mode to given mode string
|
|
264
|
+
* @param {string} mode - Editor mode name of want to change
|
|
265
|
+
* @param {boolean} [withoutFocus] - Change mode without focus
|
|
266
|
+
*/
|
|
267
|
+
changeMode(mode: EditorType, withoutFocus?: boolean): void;
|
|
268
|
+
/**
|
|
269
|
+
* Destroy TUIEditor from document
|
|
270
|
+
*/
|
|
271
|
+
destroy(): void;
|
|
272
|
+
/**
|
|
273
|
+
* Hide TUIEditor
|
|
274
|
+
*/
|
|
275
|
+
hide(): void;
|
|
276
|
+
/**
|
|
277
|
+
* Show TUIEditor
|
|
278
|
+
*/
|
|
279
|
+
show(): void;
|
|
280
|
+
/**
|
|
281
|
+
* Move on scroll position of the editor container
|
|
282
|
+
* @param {number} value scrollTop value of editor container
|
|
283
|
+
*/
|
|
284
|
+
setScrollTop(value: number): void;
|
|
285
|
+
/**
|
|
286
|
+
* Get scroll position value of editor container
|
|
287
|
+
* @returns {number} scrollTop value of editor container
|
|
288
|
+
*/
|
|
289
|
+
getScrollTop(): number;
|
|
290
|
+
/**
|
|
291
|
+
* Reset TUIEditor
|
|
292
|
+
*/
|
|
293
|
+
reset(): void;
|
|
294
|
+
/**
|
|
295
|
+
* Get current selection range
|
|
296
|
+
* @returns {Array.<number[]>|Array.<number>} Returns the range of the selection depending on the editor mode
|
|
297
|
+
* @example
|
|
298
|
+
* // Markdown mode
|
|
299
|
+
* const mdSelection = editor.getSelection();
|
|
300
|
+
*
|
|
301
|
+
* console.log(mdSelection); // [[startLineOffset, startCurorOffset], [endLineOffset, endCurorOffset]]
|
|
302
|
+
*
|
|
303
|
+
* // WYSIWYG mode
|
|
304
|
+
* const wwSelection = editor.getSelection();
|
|
305
|
+
*
|
|
306
|
+
* console.log(wwSelection); // [startCursorOffset, endCursorOffset]
|
|
307
|
+
*/
|
|
308
|
+
getSelection(): import("@t/editor").SelectionPos;
|
|
309
|
+
/**
|
|
310
|
+
* Set the placeholder on all editors
|
|
311
|
+
* @param {string} placeholder - placeholder to set
|
|
312
|
+
*/
|
|
313
|
+
setPlaceholder(placeholder: string): void;
|
|
314
|
+
/**
|
|
315
|
+
* Get markdown editor, preview, wysiwyg editor DOM elements
|
|
316
|
+
*/
|
|
317
|
+
getEditorElements(): {
|
|
318
|
+
mdEditor: HTMLElement;
|
|
319
|
+
mdPreview: HTMLElement;
|
|
320
|
+
wwEditor: HTMLElement;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Convert position to match editor mode
|
|
324
|
+
* @param {number|Array.<number>} start - start position
|
|
325
|
+
* @param {number|Array.<number>} end - end position
|
|
326
|
+
* @param {string} mode - Editor mode name of want to match converted position to
|
|
327
|
+
*/
|
|
328
|
+
convertPosToMatchEditorMode(start: EditorPos, end?: EditorPos, mode?: EditorType): EditorPos[];
|
|
329
|
+
}
|
|
330
|
+
export default ToastUIEditorCore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @licium/editor : i18n
|
|
3
|
+
* @version 3.2.3 | Fri Jan 02 2026
|
|
4
|
+
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Editor from '@licium/editor';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @fileoverview I18N for English
|
|
12
|
+
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
13
|
+
*/
|
|
14
|
+
Editor.setLanguage(['en', 'en-US'], {
|
|
15
|
+
Markdown: 'Markdown',
|
|
16
|
+
WYSIWYG: 'WYSIWYG',
|
|
17
|
+
Write: 'Write',
|
|
18
|
+
Preview: 'Preview',
|
|
19
|
+
Headings: 'Headings',
|
|
20
|
+
Paragraph: 'Paragraph',
|
|
21
|
+
Bold: 'Bold',
|
|
22
|
+
Italic: 'Italic',
|
|
23
|
+
Strike: 'Strike',
|
|
24
|
+
Code: 'Inline code',
|
|
25
|
+
Line: 'Line',
|
|
26
|
+
Blockquote: 'Blockquote',
|
|
27
|
+
'Unordered list': 'Unordered list',
|
|
28
|
+
'Ordered list': 'Ordered list',
|
|
29
|
+
Task: 'Task',
|
|
30
|
+
Indent: 'Indent',
|
|
31
|
+
Outdent: 'Outdent',
|
|
32
|
+
'Insert link': 'Insert link',
|
|
33
|
+
'Insert CodeBlock': 'Insert codeBlock',
|
|
34
|
+
'Insert table': 'Insert table',
|
|
35
|
+
'Insert image': 'Insert image',
|
|
36
|
+
Heading: 'Heading',
|
|
37
|
+
'Image URL': 'Image URL',
|
|
38
|
+
'Select image file': 'Select image file',
|
|
39
|
+
'Choose a file': 'Choose a file',
|
|
40
|
+
'No file': 'No file',
|
|
41
|
+
Description: 'Description',
|
|
42
|
+
OK: 'OK',
|
|
43
|
+
More: 'More',
|
|
44
|
+
Cancel: 'Cancel',
|
|
45
|
+
File: 'File',
|
|
46
|
+
URL: 'URL',
|
|
47
|
+
'Link text': 'Link text',
|
|
48
|
+
'Add row to up': 'Add row to up',
|
|
49
|
+
'Add row to down': 'Add row to down',
|
|
50
|
+
'Add column to left': 'Add column to left',
|
|
51
|
+
'Add column to right': 'Add column to right',
|
|
52
|
+
'Remove row': 'Remove row',
|
|
53
|
+
'Remove column': 'Remove column',
|
|
54
|
+
'Align column to left': 'Align column to left',
|
|
55
|
+
'Align column to center': 'Align column to center',
|
|
56
|
+
'Align column to right': 'Align column to right',
|
|
57
|
+
'Remove table': 'Remove table',
|
|
58
|
+
'Would you like to paste as table?': 'Would you like to paste as table?',
|
|
59
|
+
'Text color': 'Text color',
|
|
60
|
+
'Auto scroll enabled': 'Auto scroll enabled',
|
|
61
|
+
'Auto scroll disabled': 'Auto scroll disabled',
|
|
62
|
+
'Choose language': 'Choose language',
|
|
63
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @licium/editor : i18n
|
|
3
|
+
* @version 3.2.3 | Fri Jan 02 2026
|
|
4
|
+
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Editor from '@licium/editor';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @fileoverview I18N for Spanish
|
|
12
|
+
* @author Enrico Lamperti <oss@elamperti.com>
|
|
13
|
+
*/
|
|
14
|
+
Editor.setLanguage(['es', 'es-ES'], {
|
|
15
|
+
Markdown: 'Markdown',
|
|
16
|
+
WYSIWYG: 'WYSIWYG',
|
|
17
|
+
Write: 'Escribir',
|
|
18
|
+
Preview: 'Vista previa',
|
|
19
|
+
Headings: 'Encabezados',
|
|
20
|
+
Paragraph: 'Párrafo',
|
|
21
|
+
Bold: 'Negrita',
|
|
22
|
+
Italic: 'Itálica',
|
|
23
|
+
Strike: 'Tachado',
|
|
24
|
+
Code: 'Código',
|
|
25
|
+
Line: 'Línea',
|
|
26
|
+
Blockquote: 'Cita',
|
|
27
|
+
'Unordered list': 'Lista desordenada',
|
|
28
|
+
'Ordered list': 'Lista ordenada',
|
|
29
|
+
Task: 'Tarea',
|
|
30
|
+
Indent: 'Sangría',
|
|
31
|
+
Outdent: 'Saliendo',
|
|
32
|
+
'Insert link': 'Insertar enlace',
|
|
33
|
+
'Insert CodeBlock': 'Insertar bloque de código',
|
|
34
|
+
'Insert table': 'Insertar tabla',
|
|
35
|
+
'Insert image': 'Insertar imagen',
|
|
36
|
+
Heading: 'Encabezado',
|
|
37
|
+
'Image URL': 'URL de la imagen',
|
|
38
|
+
'Select image file': 'Seleccionar archivo de imagen',
|
|
39
|
+
'Choose a file': 'Escoge un archivo',
|
|
40
|
+
'No file': 'Ningún archivo',
|
|
41
|
+
Description: 'Descripción',
|
|
42
|
+
OK: 'Aceptar',
|
|
43
|
+
More: 'Más',
|
|
44
|
+
Cancel: 'Cancelar',
|
|
45
|
+
File: 'Archivo',
|
|
46
|
+
URL: 'URL',
|
|
47
|
+
'Link text': 'Texto del enlace',
|
|
48
|
+
'Add row to up': 'Agregar fila para subir',
|
|
49
|
+
'Add row to down': 'Agregar fila hacia abajo',
|
|
50
|
+
'Add column to left': 'Agregar columna a la izquierda',
|
|
51
|
+
'Add column to right': 'Agregar columna a la derecha',
|
|
52
|
+
'Remove row': 'Eliminar fila',
|
|
53
|
+
'Remove column': 'Eliminar columna',
|
|
54
|
+
'Align column to left': 'Alinear a la izquierda',
|
|
55
|
+
'Align column to center': 'Centrar',
|
|
56
|
+
'Align column to right': 'Alinear a la derecha',
|
|
57
|
+
'Remove table': 'Eliminar tabla',
|
|
58
|
+
'Would you like to paste as table?': '¿Desea pegar como tabla?',
|
|
59
|
+
'Text color': 'Color del texto',
|
|
60
|
+
'Auto scroll enabled': 'Desplazamiento automático habilitado',
|
|
61
|
+
'Auto scroll disabled': 'Desplazamiento automático deshabilitado',
|
|
62
|
+
'Choose language': 'Elegir idioma',
|
|
63
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Emitter, Handler } from '@t/event';
|
|
2
|
+
import Map from '@/utils/map';
|
|
3
|
+
/**
|
|
4
|
+
* Class EventEmitter
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
declare class EventEmitter implements Emitter {
|
|
8
|
+
private events;
|
|
9
|
+
private eventTypes;
|
|
10
|
+
private hold;
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Listen event and bind event handler
|
|
14
|
+
* @param {string} type Event type string
|
|
15
|
+
* @param {function} handler Event handler
|
|
16
|
+
*/
|
|
17
|
+
listen(type: string, handler: Handler): void;
|
|
18
|
+
/**
|
|
19
|
+
* Emit event
|
|
20
|
+
* @param {string} eventName Event name to emit
|
|
21
|
+
* @returns {Array}
|
|
22
|
+
*/
|
|
23
|
+
emit(type: string, ...args: any[]): any[];
|
|
24
|
+
/**
|
|
25
|
+
* Emit given event and return result
|
|
26
|
+
* @param {string} eventName Event name to emit
|
|
27
|
+
* @param {any} source Source to change
|
|
28
|
+
* @returns {string}
|
|
29
|
+
*/
|
|
30
|
+
emitReduce(type: string, source: any, ...args: any[]): any;
|
|
31
|
+
/**
|
|
32
|
+
* Get event type and namespace
|
|
33
|
+
* @param {string} type Event type name
|
|
34
|
+
* @returns {{type: string, namespace: string}}
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
private getTypeInfo;
|
|
38
|
+
/**
|
|
39
|
+
* Check whether event type exists or not
|
|
40
|
+
* @param {string} type Event type name
|
|
41
|
+
* @returns {boolean}
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
private hasEventType;
|
|
45
|
+
/**
|
|
46
|
+
* Add event type when given event not exists
|
|
47
|
+
* @param {string} type Event type name
|
|
48
|
+
*/
|
|
49
|
+
addEventType(type: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* Remove event handler from given event type
|
|
52
|
+
* @param {string} eventType Event type name
|
|
53
|
+
* @param {function} [handler] - registered event handler
|
|
54
|
+
*/
|
|
55
|
+
removeEventHandler(eventType: string, handler?: Handler): void;
|
|
56
|
+
/**
|
|
57
|
+
* Remove event handler with event handler
|
|
58
|
+
* @param {string} type - event type name
|
|
59
|
+
* @param {function} handler - event handler
|
|
60
|
+
* @private
|
|
61
|
+
*/
|
|
62
|
+
private removeEventHandlerWithHandler;
|
|
63
|
+
/**
|
|
64
|
+
* Remove event handler with event type information
|
|
65
|
+
* @param {string} type Event type name
|
|
66
|
+
* @param {string} namespace Event namespace
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
private removeEventHandlerWithTypeInfo;
|
|
70
|
+
getEvents(): Map<string, Handler[] | undefined>;
|
|
71
|
+
holdEventInvoke(fn: Function): void;
|
|
72
|
+
}
|
|
73
|
+
export default EventEmitter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|