@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
package/README.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# 
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@toast-ui/editor)
|
|
4
|
+
|
|
5
|
+
## 🚩 Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Collect Statistics on the Use of Open Source](#Collect-statistics-on-the-use-of-open-source)
|
|
8
|
+
- [Documents](#-documents)
|
|
9
|
+
- [Install](#-install)
|
|
10
|
+
- [Usage](#-usage)
|
|
11
|
+
- [Tutorials](#-tutorials)
|
|
12
|
+
|
|
13
|
+
## Collect Statistics on the Use of Open Source
|
|
14
|
+
|
|
15
|
+
TOAST UI products apply Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI Editor is used throughout the world. It also serves as important index to determine the future course of projects. `location.hostname` (e.g. ui.toast.com) is to be collected and the sole purpose is nothing but to measure statistics on the usage.
|
|
16
|
+
|
|
17
|
+
To disable GA, use the following `usageStatistics` option when creating the instance.
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const options = {
|
|
21
|
+
// ...
|
|
22
|
+
usageStatistics: false
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const editor = new Editor(options);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 📙 Documents
|
|
29
|
+
|
|
30
|
+
- [Getting Started](https://github.com/nhn/tui.editor/blob/master/docs/en/getting-started.md)
|
|
31
|
+
- [APIs](https://nhn.github.io/tui.editor/latest/)
|
|
32
|
+
- v3.0 Migration Guide
|
|
33
|
+
- [English](https://github.com/nhn/tui.editor/blob/master/docs/v3.0-migration-guide.md)
|
|
34
|
+
- [한국어](https://github.com/nhn/tui.editor/blob/master/docs/v3.0-migration-guide-ko.md)
|
|
35
|
+
|
|
36
|
+
You can also see the older versions of API page on the [releases page](https://github.com/nhn/tui.editor/releases).
|
|
37
|
+
|
|
38
|
+
## 💾 Install
|
|
39
|
+
|
|
40
|
+
TOAST UI products can be used by using the package manager or downloading the source directly. However, we highly recommend using the package manager.
|
|
41
|
+
|
|
42
|
+
### Via Package Manager
|
|
43
|
+
|
|
44
|
+
TOAST UI products are registered in two package managers, [npm](https://www.npmjs.com/). You can conveniently install it using the commands provided by the package manager. When using npm, be sure to use it in the environment [Node.js](https://nodejs.org/en/) is installed.
|
|
45
|
+
|
|
46
|
+
#### npm
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
$ npm install --save @toast-ui/editor # Latest Version
|
|
50
|
+
$ npm install --save @toast-ui/editor@<version> # Specific Version
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Via Contents Delivery Network (CDN)
|
|
54
|
+
|
|
55
|
+
TOAST UI products are available over the CDN powered by [NHN Cloud](https://www.toast.com).
|
|
56
|
+
|
|
57
|
+
You can use the CDN as below.
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
...
|
|
61
|
+
<body>
|
|
62
|
+
...
|
|
63
|
+
<script src="https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js"></script>
|
|
64
|
+
</body>
|
|
65
|
+
...
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
If you want to use a specific version, use the tag name instead of `latest` in the url's path.
|
|
69
|
+
|
|
70
|
+
The CDN directory has the following structure:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
- uicdn.toast.com/
|
|
74
|
+
├─ editor/
|
|
75
|
+
│ ├─ latest/
|
|
76
|
+
│ │ ├─ toastui-editor-all.js
|
|
77
|
+
│ │ ├─ toastui-editor-all.min.js
|
|
78
|
+
│ │ ├─ toastui-editor-viewer.js
|
|
79
|
+
│ │ ├─ toastui-editor-viewer.min.js
|
|
80
|
+
│ │ ├─ toastui-editor.css
|
|
81
|
+
│ │ ├─ toastui-editor.min.css
|
|
82
|
+
│ │ ├─ toastui-editor-viewer.css
|
|
83
|
+
│ │ ├─ toastui-editor-viewer.min.css
|
|
84
|
+
│ │ ├─ toastui-editor-only.css
|
|
85
|
+
│ │ ├─ toastui-editor-only.min.css
|
|
86
|
+
│ │ └─ theme/
|
|
87
|
+
│ │ ├─ toastui-editor-dark.css
|
|
88
|
+
│ │ └─ toastui-editor-dark.min.css
|
|
89
|
+
│ │ └─ i18n/
|
|
90
|
+
│ │ └─ ...
|
|
91
|
+
│ ├─ 2.0.0/
|
|
92
|
+
│ │ └─ ...
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 🔨 Usage
|
|
96
|
+
|
|
97
|
+
First, you need to add the container element where TOAST UI Editor (henceforth referred to as 'Editor') will be created.
|
|
98
|
+
|
|
99
|
+
```html
|
|
100
|
+
...
|
|
101
|
+
<body>
|
|
102
|
+
<div id="editor"></div>
|
|
103
|
+
</body>
|
|
104
|
+
...
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
The editor can be used by creating an instance with the constructor function. To get the constructor function, you should import the module using one of the following ways depending on your environment.
|
|
108
|
+
|
|
109
|
+
### Using Module Format in Node Environment
|
|
110
|
+
|
|
111
|
+
- ES6 Modules
|
|
112
|
+
|
|
113
|
+
```javascript
|
|
114
|
+
import Editor from '@toast-ui/editor';
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
- CommonJS
|
|
118
|
+
|
|
119
|
+
```javascript
|
|
120
|
+
const Editor = require('@toast-ui/editor');
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Using Namespace in Browser Environment
|
|
124
|
+
|
|
125
|
+
```javascript
|
|
126
|
+
const Editor = toastui.Editor;
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Then, you need to add the CSS files needed for the Editor. Import CSS files in node environment, and add it to html file when using CDN.
|
|
130
|
+
|
|
131
|
+
### Using in Node Environment
|
|
132
|
+
|
|
133
|
+
```javascript
|
|
134
|
+
import '@toast-ui/editor/dist/toastui-editor.css'; // Editor's Style
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Using in Browser Environment by CDN
|
|
138
|
+
|
|
139
|
+
```html
|
|
140
|
+
...
|
|
141
|
+
<head>
|
|
142
|
+
...
|
|
143
|
+
<!-- Editor's Style -->
|
|
144
|
+
<link rel="stylesheet" href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css" />
|
|
145
|
+
</head>
|
|
146
|
+
...
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Finally you can create an instance with options and call various API after creating an instance.
|
|
150
|
+
|
|
151
|
+
```javascript
|
|
152
|
+
const editor = new Editor({
|
|
153
|
+
el: document.querySelector('#editor'),
|
|
154
|
+
height: '500px',
|
|
155
|
+
initialEditType: 'markdown',
|
|
156
|
+
previewStyle: 'vertical'
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
editor.getMarkdown();
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Default Options
|
|
163
|
+
|
|
164
|
+
- `height`: Height in string or auto ex) `300px` | `auto`
|
|
165
|
+
- `initialEditType`: Initial type to show `markdown` | `wysiwyg`
|
|
166
|
+
- `initialValue`: Initial value. Set Markdown string
|
|
167
|
+
- `previewStyle`: Preview style of Markdown mode `tab` | `vertical`
|
|
168
|
+
- `usageStatistics`: Let us know the _hostname_. We want to learn from you how you are using the Editor. You are free to disable it. `true` | `false`
|
|
169
|
+
|
|
170
|
+
Find out more options [here](https://nhn.github.io/tui.editor/latest/ToastUIEditor).
|
|
171
|
+
|
|
172
|
+
## 🦄 Tutorials
|
|
173
|
+
|
|
174
|
+
- [Viewer](https://github.com/nhn/tui.editor/blob/master/docs/en/viewer.md)
|
|
175
|
+
- [Plugins](https://github.com/nhn/tui.editor/blob/master/docs/en/plugin.md)
|
|
176
|
+
- [Internationalization (i18n)](https://github.com/nhn/tui.editor/blob/master/docs/en/i18n.md)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@/i18n/en-us';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@/i18n/en-us';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@/i18n/en-us';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import MarkdownEditor from '@/markdown/mdEditor';
|
|
2
|
+
export declare function getTextContent(editor: MarkdownEditor): string;
|
|
3
|
+
export declare function removeDataAttr(html: string): string;
|
|
4
|
+
export declare function createHTMLrenderer(): Partial<Record<string, import("@toast-ui/toastmark").HTMLConvertor>>;
|
|
5
|
+
export declare class TestEditorWithNoneDelayHistory extends MarkdownEditor {
|
|
6
|
+
get defaultPlugins(): import("prosemirror-state").Plugin<any>[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 Arabic
|
|
12
|
+
* @author Amira Salah <amira.salah@itworx.com>
|
|
13
|
+
*/
|
|
14
|
+
Editor.setLanguage('ar', {
|
|
15
|
+
Markdown: 'لغة ترميز',
|
|
16
|
+
WYSIWYG: 'ما تراه هو ما تحصل عليه',
|
|
17
|
+
Write: 'يكتب',
|
|
18
|
+
Preview: 'عرض مسبق',
|
|
19
|
+
Headings: 'العناوين',
|
|
20
|
+
Paragraph: 'فقرة',
|
|
21
|
+
Bold: 'خط عريض',
|
|
22
|
+
Italic: 'خط مائل',
|
|
23
|
+
Strike: 'إضراب',
|
|
24
|
+
Code: 'رمز',
|
|
25
|
+
Line: 'خط',
|
|
26
|
+
Blockquote: 'فقرة مقتبسة',
|
|
27
|
+
'Unordered list': 'قائمة غير مرتبة',
|
|
28
|
+
'Ordered list': 'قائمة مرتبة',
|
|
29
|
+
Task: 'مهمة',
|
|
30
|
+
Indent: 'المسافة البادئة',
|
|
31
|
+
Outdent: 'المسافة الخارجة',
|
|
32
|
+
'Insert link': 'أدخل الرابط',
|
|
33
|
+
'Insert CodeBlock': 'أدخل الكود',
|
|
34
|
+
'Insert table': 'أدخل جدول',
|
|
35
|
+
'Insert image': 'أدخل صورة',
|
|
36
|
+
Heading: 'عنوان',
|
|
37
|
+
'Image URL': 'رابط الصورة',
|
|
38
|
+
'Select image file': 'حدد ملف الصورة',
|
|
39
|
+
'Choose a file': 'اختيار الملف',
|
|
40
|
+
'No file': 'لا ملف',
|
|
41
|
+
Description: 'وصف',
|
|
42
|
+
OK: 'موافقة',
|
|
43
|
+
More: 'أكثر',
|
|
44
|
+
Cancel: 'إلغاء',
|
|
45
|
+
File: 'ملف',
|
|
46
|
+
URL: 'رابط',
|
|
47
|
+
'Link text': 'نص الرابط',
|
|
48
|
+
'Add row to up': 'أضف صفًا لأعلى',
|
|
49
|
+
'Add row to down': 'أضف صفًا إلى أسفل',
|
|
50
|
+
'Add column to left': 'أضف العمود على اليسار',
|
|
51
|
+
'Add column to right': 'أضف عمودًا إلى اليمين',
|
|
52
|
+
'Remove row': 'حذف سطر',
|
|
53
|
+
'Remove column': 'حذف عمود',
|
|
54
|
+
'Align column to left': 'محاذاة اليسار',
|
|
55
|
+
'Align column to center': 'محاذاة الوسط',
|
|
56
|
+
'Align column to right': 'محاذاة اليمين',
|
|
57
|
+
'Remove table': 'حذف الجدول',
|
|
58
|
+
'Would you like to paste as table?': 'هل تريد اللصق كجدول',
|
|
59
|
+
'Text color': 'لون النص',
|
|
60
|
+
'Auto scroll enabled': 'التحريك التلقائي ممكّن',
|
|
61
|
+
'Auto scroll disabled': 'التحريك التلقائي معطّل',
|
|
62
|
+
'Choose language': 'اختر اللغة',
|
|
63
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Schema } from 'prosemirror-model';
|
|
3
|
+
import { EditorState, Plugin, Transaction } from 'prosemirror-state';
|
|
4
|
+
import { EditorView } from 'prosemirror-view';
|
|
5
|
+
import { Sourcepos } from '@licium/toastmark';
|
|
6
|
+
import { WidgetStyle, EditorType, EditorPos, Base, NodeRangeInfo } from '@t/editor';
|
|
7
|
+
import { Emitter } from '@t/event';
|
|
8
|
+
import { Context, EditorAllCommandMap } from '@t/spec';
|
|
9
|
+
import SpecManager from './spec/specManager';
|
|
10
|
+
import { PluginProp } from '@t/plugin';
|
|
11
|
+
export default abstract class EditorBase implements Base {
|
|
12
|
+
el: HTMLElement;
|
|
13
|
+
editorType: EditorType;
|
|
14
|
+
eventEmitter: Emitter;
|
|
15
|
+
context: Context;
|
|
16
|
+
schema: Schema;
|
|
17
|
+
keymaps: Plugin[];
|
|
18
|
+
view: EditorView;
|
|
19
|
+
commands: EditorAllCommandMap;
|
|
20
|
+
specs: SpecManager;
|
|
21
|
+
placeholder: {
|
|
22
|
+
text: string;
|
|
23
|
+
};
|
|
24
|
+
extraPlugins: PluginProp[];
|
|
25
|
+
timer: NodeJS.Timeout | null;
|
|
26
|
+
constructor(eventEmitter: Emitter);
|
|
27
|
+
abstract createSpecs(): SpecManager;
|
|
28
|
+
abstract createContext(): Context;
|
|
29
|
+
abstract createView(): EditorView;
|
|
30
|
+
createState(): EditorState;
|
|
31
|
+
protected initEvent(): void;
|
|
32
|
+
protected emitChangeEvent(tr: Transaction): void;
|
|
33
|
+
get defaultPlugins(): Plugin<any>[];
|
|
34
|
+
private createInputRules;
|
|
35
|
+
private clearTimer;
|
|
36
|
+
createSchema(): Schema<never, never>;
|
|
37
|
+
createKeymaps(useCommandShortcut: boolean): Plugin<any>[];
|
|
38
|
+
createCommands(): EditorAllCommandMap<import("@t/spec").DefaultPayload>;
|
|
39
|
+
createPluginProps(): Plugin<any>[];
|
|
40
|
+
focus(): void;
|
|
41
|
+
blur(): void;
|
|
42
|
+
destroy(): void;
|
|
43
|
+
moveCursorToStart(focus: boolean): void;
|
|
44
|
+
moveCursorToEnd(focus: boolean): void;
|
|
45
|
+
setScrollTop(top: number): void;
|
|
46
|
+
getScrollTop(): number;
|
|
47
|
+
setPlaceholder(text: string): void;
|
|
48
|
+
setHeight(height: number): void;
|
|
49
|
+
setMinHeight(minHeight: number): void;
|
|
50
|
+
getElement(): HTMLElement;
|
|
51
|
+
abstract createPlugins(): Plugin[];
|
|
52
|
+
abstract replaceWithWidget(start: EditorPos, end: EditorPos, text: string): void;
|
|
53
|
+
abstract addWidget(node: Node, style: WidgetStyle, pos?: EditorPos): void;
|
|
54
|
+
abstract setSelection(start?: EditorPos, end?: EditorPos): void;
|
|
55
|
+
abstract replaceSelection(text: string, start?: EditorPos, end?: EditorPos): void;
|
|
56
|
+
abstract deleteSelection(start?: EditorPos, end?: EditorPos): void;
|
|
57
|
+
abstract getSelectedText(start?: EditorPos, end?: EditorPos): string;
|
|
58
|
+
abstract getSelection(): Sourcepos | [number, number];
|
|
59
|
+
abstract getRangeInfoOfNode(pos?: EditorPos): NodeRangeInfo;
|
|
60
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EditorType } from '@t/editor';
|
|
2
|
+
import { EditorAllCommandMap, EditorCommandFn } from '@t/spec';
|
|
3
|
+
import { Emitter } from '@t/event';
|
|
4
|
+
declare type GetEditorType = () => EditorType;
|
|
5
|
+
export default class CommandManager {
|
|
6
|
+
private eventEmitter;
|
|
7
|
+
private mdCommands;
|
|
8
|
+
private wwCommands;
|
|
9
|
+
private getEditorType;
|
|
10
|
+
constructor(eventEmitter: Emitter, mdCommands: EditorAllCommandMap, wwCommands: EditorAllCommandMap, getEditorType: GetEditorType);
|
|
11
|
+
private initEvent;
|
|
12
|
+
addCommand(type: EditorType, name: string, command: EditorCommandFn): void;
|
|
13
|
+
deleteCommand(type: EditorType, name: string): void;
|
|
14
|
+
exec(name: string, payload?: Record<string, any>): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Node as ProsemirrorNode, Schema } from 'prosemirror-model';
|
|
2
|
+
import { HTMLConvertorMap, MdNode, MdPos } from '@licium/toastmark';
|
|
3
|
+
import { ToMdConvertorMap } from '@t/convertor';
|
|
4
|
+
import { Emitter } from '@t/event';
|
|
5
|
+
export default class Convertor {
|
|
6
|
+
private readonly schema;
|
|
7
|
+
private readonly toWwConvertors;
|
|
8
|
+
private readonly toMdConvertors;
|
|
9
|
+
private readonly eventEmitter;
|
|
10
|
+
private focusedNode;
|
|
11
|
+
private mappedPosWhenConverting;
|
|
12
|
+
private focusedOffset;
|
|
13
|
+
constructor(schema: Schema, toMdConvertors: ToMdConvertorMap, toHTMLConvertors: HTMLConvertorMap, eventEmitter: Emitter);
|
|
14
|
+
getMappedPos(): number | MdPos | null;
|
|
15
|
+
setMappedPos: (pos: number | MdPos) => void;
|
|
16
|
+
private getInfoForPosSync;
|
|
17
|
+
toWysiwygModel(mdNode: MdNode): ProsemirrorNode | null;
|
|
18
|
+
toMarkdownText(wwNode: ProsemirrorNode): string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Node } from 'prosemirror-model';
|
|
2
|
+
import { ToMdConvertors, FirstDelimFn, InfoForPosSync } from '@t/convertor';
|
|
3
|
+
export default class ToMdConvertorState {
|
|
4
|
+
private readonly nodeTypeConvertors;
|
|
5
|
+
private readonly markTypeConvertors;
|
|
6
|
+
private delim;
|
|
7
|
+
private result;
|
|
8
|
+
private closed;
|
|
9
|
+
private tightList;
|
|
10
|
+
stopNewline: boolean;
|
|
11
|
+
inTable: boolean;
|
|
12
|
+
private infoForPosSync;
|
|
13
|
+
constructor({ nodeTypeConvertors, markTypeConvertors }: ToMdConvertors);
|
|
14
|
+
private getMarkConvertor;
|
|
15
|
+
private isInBlank;
|
|
16
|
+
private markText;
|
|
17
|
+
setDelim(delim: string): void;
|
|
18
|
+
getDelim(): string;
|
|
19
|
+
flushClose(size?: number): void;
|
|
20
|
+
wrapBlock(delim: string, firstDelim: string | null, node: Node, fn: () => void): void;
|
|
21
|
+
ensureNewLine(): void;
|
|
22
|
+
write(content?: string): void;
|
|
23
|
+
closeBlock(node: Node): void;
|
|
24
|
+
text(text: string, escaped?: boolean): void;
|
|
25
|
+
convertBlock(node: Node, parent: Node, index: number): void;
|
|
26
|
+
convertInline(parent: Node): void;
|
|
27
|
+
convertList(node: Node, delim: string, firstDelimFn: FirstDelimFn): void;
|
|
28
|
+
convertTableCell(node: Node): void;
|
|
29
|
+
convertNode(parent: Node, infoForPosSync?: InfoForPosSync | null): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToMdConvertorMap } from '@t/convertor';
|
|
2
|
+
import { WwNodeType, WwMarkType } from '@t/wysiwyg';
|
|
3
|
+
export declare const toMdConvertors: ToMdConvertorMap;
|
|
4
|
+
export declare function createMdConvertors(customConvertors: ToMdConvertorMap): {
|
|
5
|
+
nodeTypeConvertors: Partial<Record<WwNodeType, import("@t/convertor").ToMdNodeTypeConvertor>>;
|
|
6
|
+
markTypeConvertors: Partial<Record<WwMarkType, import("@t/convertor").ToMdMarkTypeConvertor>>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ToMdNodeTypeWriterMap, ToMdConvertorState, NodeInfo, ToMdConvertorReturnValues } from '@t/convertor';
|
|
2
|
+
import { WwNodeType } from '@t/wysiwyg';
|
|
3
|
+
export declare const nodeTypeWriters: ToMdNodeTypeWriterMap;
|
|
4
|
+
export declare function write(type: WwNodeType, { state, nodeInfo, params, }: {
|
|
5
|
+
state: ToMdConvertorState;
|
|
6
|
+
nodeInfo: NodeInfo;
|
|
7
|
+
params: ToMdConvertorReturnValues;
|
|
8
|
+
}): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MdNode } from '@licium/toastmark';
|
|
2
|
+
import { FlattenHTMLToWwConvertorMap, ToWwConvertorState } from '@t/convertor';
|
|
3
|
+
export declare function getTextWithoutTrailingNewline(text: string): string;
|
|
4
|
+
export declare function isCustomInline(node: MdNode): boolean;
|
|
5
|
+
export declare function isCustomHTMLInlineNode({ schema }: ToWwConvertorState, node: MdNode): boolean;
|
|
6
|
+
export declare function isInlineNode({ type }: MdNode): boolean;
|
|
7
|
+
export declare const htmlToWwConvertors: FlattenHTMLToWwConvertorMap;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Schema, Node, NodeType, Mark, MarkType } from 'prosemirror-model';
|
|
2
|
+
import { MdNode } from '@licium/toastmark';
|
|
3
|
+
import { ToWwConvertorMap, StackItem, Attrs, InfoForPosSync } from '@t/convertor';
|
|
4
|
+
export declare function mergeMarkText(a: Node, b: Node): any;
|
|
5
|
+
export default class ToWwConvertorState {
|
|
6
|
+
readonly schema: Schema;
|
|
7
|
+
private readonly convertors;
|
|
8
|
+
private stack;
|
|
9
|
+
private marks;
|
|
10
|
+
constructor(schema: Schema, convertors: ToWwConvertorMap);
|
|
11
|
+
top(): StackItem;
|
|
12
|
+
push(node: Node): void;
|
|
13
|
+
addText(text: string): void;
|
|
14
|
+
openMark(mark: Mark): void;
|
|
15
|
+
closeMark(mark: MarkType): void;
|
|
16
|
+
addNode(type: NodeType, attrs: Attrs, content: Node[]): Node | null;
|
|
17
|
+
openNode(type: NodeType, attrs: Attrs): void;
|
|
18
|
+
closeNode(): Node | null;
|
|
19
|
+
convertByDOMParser(root: HTMLElement): void;
|
|
20
|
+
private closeUnmatchedHTMLInline;
|
|
21
|
+
private convert;
|
|
22
|
+
convertNode(mdNode: MdNode, infoForPosSync?: InfoForPosSync): Node | null;
|
|
23
|
+
}
|
|
@@ -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 Czech
|
|
12
|
+
* @author Dmitrij Tkačenko <dmitrij.tkacenko@scalesoft.cz>
|
|
13
|
+
*/
|
|
14
|
+
Editor.setLanguage(['cs', 'cs-CZ'], {
|
|
15
|
+
Markdown: 'Markdown',
|
|
16
|
+
WYSIWYG: 'WYSIWYG',
|
|
17
|
+
Write: 'Napsat',
|
|
18
|
+
Preview: 'Náhled',
|
|
19
|
+
Headings: 'Nadpisy',
|
|
20
|
+
Paragraph: 'Odstavec',
|
|
21
|
+
Bold: 'Tučné',
|
|
22
|
+
Italic: 'Kurzíva',
|
|
23
|
+
Strike: 'Přeškrtnuté',
|
|
24
|
+
Code: 'Kód',
|
|
25
|
+
Line: 'Vodorovná čára',
|
|
26
|
+
Blockquote: 'Citace',
|
|
27
|
+
'Unordered list': 'Seznam s odrážkami',
|
|
28
|
+
'Ordered list': 'Číslovaný seznam',
|
|
29
|
+
Task: 'Úkol',
|
|
30
|
+
Indent: 'Zvětšit odsazení',
|
|
31
|
+
Outdent: 'Zmenšit odsazení',
|
|
32
|
+
'Insert link': 'Vložit odkaz',
|
|
33
|
+
'Insert CodeBlock': 'Vložit blok kódu',
|
|
34
|
+
'Insert table': 'Vložit tabulku',
|
|
35
|
+
'Insert image': 'Vložit obrázek',
|
|
36
|
+
Heading: 'Nadpis',
|
|
37
|
+
'Image URL': 'URL obrázku',
|
|
38
|
+
'Select image file': 'Vybrat obrázek',
|
|
39
|
+
'Choose a file': 'Vyberte soubor',
|
|
40
|
+
'No file': 'Žádný soubor',
|
|
41
|
+
Description: 'Popis',
|
|
42
|
+
OK: 'OK',
|
|
43
|
+
More: 'Více',
|
|
44
|
+
Cancel: 'Zrušit',
|
|
45
|
+
File: 'Soubor',
|
|
46
|
+
URL: 'URL',
|
|
47
|
+
'Link text': 'Text odkazu',
|
|
48
|
+
'Add row to up': 'Přidejte řádek nahoru',
|
|
49
|
+
'Add row to down': 'Přidejte řádek dolů',
|
|
50
|
+
'Add column to left': 'Přidat sloupec vlevo',
|
|
51
|
+
'Add column to right': 'Přidat sloupec doprava',
|
|
52
|
+
'Remove row': 'Odebrat řádek',
|
|
53
|
+
'Remove column': 'Odebrat sloupec',
|
|
54
|
+
'Align column to left': 'Zarovnat vlevo',
|
|
55
|
+
'Align column to center': 'Zarovnat na střed',
|
|
56
|
+
'Align column to right': 'Zarovnat vpravo',
|
|
57
|
+
'Remove table': 'Odstranit tabulku',
|
|
58
|
+
'Would you like to paste as table?': 'Chcete vložit jako tabulku?',
|
|
59
|
+
'Text color': 'Barva textu',
|
|
60
|
+
'Auto scroll enabled': 'Automatické rolování zapnuto',
|
|
61
|
+
'Auto scroll disabled': 'Automatické rolování vypnuto',
|
|
62
|
+
'Choose language': 'Vybrat jazyk',
|
|
63
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|