@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.
Files changed (265) hide show
  1. package/README.md +176 -0
  2. package/dist/esm/i18n/__test__/integration/ui/layout.spec.d.ts +1 -0
  3. package/dist/esm/i18n/__test__/integration/ui/toolbar.spec.d.ts +1 -0
  4. package/dist/esm/i18n/__test__/integration/vdom/render.spec.d.ts +1 -0
  5. package/dist/esm/i18n/__test__/integration/widget/widgetNode.spec.d.ts +1 -0
  6. package/dist/esm/i18n/__test__/unit/convertor.spec.d.ts +1 -0
  7. package/dist/esm/i18n/__test__/unit/dom.spec.d.ts +1 -0
  8. package/dist/esm/i18n/__test__/unit/editor.spec.d.ts +1 -0
  9. package/dist/esm/i18n/__test__/unit/eventEmitter.spec.d.ts +1 -0
  10. package/dist/esm/i18n/__test__/unit/helper/common.spec.d.ts +1 -0
  11. package/dist/esm/i18n/__test__/unit/helper/image.spec.d.ts +1 -0
  12. package/dist/esm/i18n/__test__/unit/linkXss.spec.d.ts +1 -0
  13. package/dist/esm/i18n/__test__/unit/markdown/keymap.spec.d.ts +1 -0
  14. package/dist/esm/i18n/__test__/unit/markdown/mdCommand.spec.d.ts +1 -0
  15. package/dist/esm/i18n/__test__/unit/markdown/mdEditor.spec.d.ts +1 -0
  16. package/dist/esm/i18n/__test__/unit/markdown/mdPreview.spec.d.ts +1 -0
  17. package/dist/esm/i18n/__test__/unit/markdown/smartTask.spec.d.ts +1 -0
  18. package/dist/esm/i18n/__test__/unit/markdown/syntaxHighlight.spec.d.ts +1 -0
  19. package/dist/esm/i18n/__test__/unit/markdown/util.d.ts +7 -0
  20. package/dist/esm/i18n/__test__/unit/repro_3296.spec.d.ts +1 -0
  21. package/dist/esm/i18n/__test__/unit/sanitizer.spec.d.ts +1 -0
  22. package/dist/esm/i18n/__test__/unit/utils/escape.spec.d.ts +1 -0
  23. package/dist/esm/i18n/__test__/unit/utils/pollution.spec.d.ts +1 -0
  24. package/dist/esm/i18n/__test__/unit/vdom/template.spec.d.ts +1 -0
  25. package/dist/esm/i18n/__test__/unit/viewer.spec.d.ts +1 -0
  26. package/dist/esm/i18n/__test__/unit/wysiwyg/customBlock.spec.d.ts +1 -0
  27. package/dist/esm/i18n/__test__/unit/wysiwyg/helper/pasteMsoList.spec.d.ts +1 -0
  28. package/dist/esm/i18n/__test__/unit/wysiwyg/imageInsertion.spec.d.ts +1 -0
  29. package/dist/esm/i18n/__test__/unit/wysiwyg/keymap.spec.d.ts +1 -0
  30. package/dist/esm/i18n/__test__/unit/wysiwyg/wwCommand.spec.d.ts +1 -0
  31. package/dist/esm/i18n/__test__/unit/wysiwyg/wwEditor.spec.d.ts +1 -0
  32. package/dist/esm/i18n/__test__/unit/wysiwyg/wwTableCommand.spec.d.ts +1 -0
  33. package/dist/esm/i18n/__test__/unit/wysiwyg/wwToDOMAdaptor.spec.d.ts +1 -0
  34. package/dist/esm/i18n/__test__/unit/xssSanitizer.spec.d.ts +1 -0
  35. package/dist/esm/i18n/ar.d.ts +1 -0
  36. package/dist/esm/i18n/ar.js +63 -0
  37. package/dist/esm/i18n/base.d.ts +60 -0
  38. package/dist/esm/i18n/commands/commandManager.d.ts +16 -0
  39. package/dist/esm/i18n/commands/defaultCommands.d.ts +2 -0
  40. package/dist/esm/i18n/commands/wwCommands.d.ts +2 -0
  41. package/dist/esm/i18n/convertors/convertor.d.ts +19 -0
  42. package/dist/esm/i18n/convertors/toMarkdown/toMdConvertorState.d.ts +30 -0
  43. package/dist/esm/i18n/convertors/toMarkdown/toMdConvertors.d.ts +7 -0
  44. package/dist/esm/i18n/convertors/toMarkdown/toMdNodeTypeWriters.d.ts +8 -0
  45. package/dist/esm/i18n/convertors/toWysiwyg/htmlToWwConvertors.d.ts +7 -0
  46. package/dist/esm/i18n/convertors/toWysiwyg/toWwConvertorState.d.ts +23 -0
  47. package/dist/esm/i18n/convertors/toWysiwyg/toWwConvertors.d.ts +4 -0
  48. package/dist/esm/i18n/cs-cz.d.ts +1 -0
  49. package/dist/esm/i18n/cs-cz.js +63 -0
  50. package/dist/esm/i18n/de-de.d.ts +1 -0
  51. package/dist/esm/i18n/de-de.js +63 -0
  52. package/dist/esm/i18n/editor.d.ts +36 -0
  53. package/dist/esm/i18n/editorCore.d.ts +330 -0
  54. package/dist/esm/i18n/en-us.d.ts +1 -0
  55. package/dist/esm/i18n/en-us.js +63 -0
  56. package/dist/esm/i18n/es-es.d.ts +1 -0
  57. package/dist/esm/i18n/es-es.js +63 -0
  58. package/dist/esm/i18n/esm/index.d.ts +5 -0
  59. package/dist/esm/i18n/esm/indexViewer.d.ts +2 -0
  60. package/dist/esm/i18n/event/eventEmitter.d.ts +73 -0
  61. package/dist/esm/i18n/fi-fi.d.ts +1 -0
  62. package/dist/esm/i18n/fi-fi.js +63 -0
  63. package/dist/esm/i18n/fr-fr.d.ts +1 -0
  64. package/dist/esm/i18n/fr-fr.js +63 -0
  65. package/dist/esm/i18n/gl-es.d.ts +5 -0
  66. package/dist/esm/i18n/gl-es.js +63 -0
  67. package/dist/esm/i18n/helper/image.d.ts +4 -0
  68. package/dist/esm/i18n/helper/manipulation.d.ts +16 -0
  69. package/dist/esm/i18n/helper/plugin.d.ts +3 -0
  70. package/dist/esm/i18n/hr-hr.d.ts +1 -0
  71. package/dist/esm/i18n/hr-hr.js +63 -0
  72. package/dist/esm/i18n/i18n.d.ts +20 -0
  73. package/dist/esm/i18n/i18n.js +217 -0
  74. package/dist/esm/i18n/index.d.ts +10 -0
  75. package/dist/esm/i18n/indexEditorOnlyStyle.d.ts +3 -0
  76. package/dist/esm/i18n/indexViewer.d.ts +3 -0
  77. package/dist/esm/i18n/it-it.d.ts +1 -0
  78. package/dist/esm/i18n/it-it.js +63 -0
  79. package/dist/esm/i18n/ja-jp.d.ts +1 -0
  80. package/dist/esm/i18n/ja-jp.js +63 -0
  81. package/dist/esm/i18n/ko-kr.d.ts +1 -0
  82. package/dist/esm/i18n/ko-kr.js +63 -0
  83. package/dist/esm/i18n/markdown/helper/list.d.ts +55 -0
  84. package/dist/esm/i18n/markdown/helper/mdCommand.d.ts +5 -0
  85. package/dist/esm/i18n/markdown/helper/pos.d.ts +22 -0
  86. package/dist/esm/i18n/markdown/helper/query.d.ts +3 -0
  87. package/dist/esm/i18n/markdown/htmlRenderConvertors.d.ts +5 -0
  88. package/dist/esm/i18n/markdown/marks/blockQuote.d.ts +19 -0
  89. package/dist/esm/i18n/markdown/marks/code.d.ts +25 -0
  90. package/dist/esm/i18n/markdown/marks/codeBlock.d.ts +18 -0
  91. package/dist/esm/i18n/markdown/marks/customBlock.d.ts +10 -0
  92. package/dist/esm/i18n/markdown/marks/emph.d.ts +17 -0
  93. package/dist/esm/i18n/markdown/marks/heading.d.ts +23 -0
  94. package/dist/esm/i18n/markdown/marks/html.d.ts +8 -0
  95. package/dist/esm/i18n/markdown/marks/link.d.ts +29 -0
  96. package/dist/esm/i18n/markdown/marks/listItem.d.ts +42 -0
  97. package/dist/esm/i18n/markdown/marks/simpleMark.d.ts +32 -0
  98. package/dist/esm/i18n/markdown/marks/strike.d.ts +14 -0
  99. package/dist/esm/i18n/markdown/marks/strong.d.ts +18 -0
  100. package/dist/esm/i18n/markdown/marks/table.d.ts +27 -0
  101. package/dist/esm/i18n/markdown/marks/thematicBreak.d.ts +17 -0
  102. package/dist/esm/i18n/markdown/mdEditor.d.ts +48 -0
  103. package/dist/esm/i18n/markdown/mdPreview.d.ts +50 -0
  104. package/dist/esm/i18n/markdown/nodes/doc.d.ts +7 -0
  105. package/dist/esm/i18n/markdown/nodes/paragraph.d.ts +46 -0
  106. package/dist/esm/i18n/markdown/nodes/text.d.ts +7 -0
  107. package/dist/esm/i18n/markdown/plugins/helper/markInfo.d.ts +19 -0
  108. package/dist/esm/i18n/markdown/plugins/previewHighlight.d.ts +3 -0
  109. package/dist/esm/i18n/markdown/plugins/smartTask.d.ts +3 -0
  110. package/dist/esm/i18n/markdown/plugins/syntaxHighlight.d.ts +3 -0
  111. package/dist/esm/i18n/markdown/scroll/animation.d.ts +2 -0
  112. package/dist/esm/i18n/markdown/scroll/dom.d.ts +16 -0
  113. package/dist/esm/i18n/markdown/scroll/offset.d.ts +9 -0
  114. package/dist/esm/i18n/markdown/scroll/scrollSync.d.ts +30 -0
  115. package/dist/esm/i18n/nb-no.d.ts +1 -0
  116. package/dist/esm/i18n/nb-no.js +63 -0
  117. package/dist/esm/i18n/nl-nl.d.ts +1 -0
  118. package/dist/esm/i18n/nl-nl.js +63 -0
  119. package/dist/esm/i18n/pl-pl.d.ts +1 -0
  120. package/dist/esm/i18n/pl-pl.js +63 -0
  121. package/dist/esm/i18n/plugins/dropImage.d.ts +3 -0
  122. package/dist/esm/i18n/plugins/placeholder.d.ts +7 -0
  123. package/dist/esm/i18n/plugins/popupWidget.d.ts +3 -0
  124. package/dist/esm/i18n/pt-br.d.ts +1 -0
  125. package/dist/esm/i18n/pt-br.js +63 -0
  126. package/dist/esm/i18n/queries/queryManager.d.ts +2 -0
  127. package/dist/esm/i18n/ru-ru.d.ts +1 -0
  128. package/dist/esm/i18n/ru-ru.js +64 -0
  129. package/dist/esm/i18n/sanitizer/htmlSanitizer.d.ts +3 -0
  130. package/dist/esm/i18n/spec/mark.d.ts +12 -0
  131. package/dist/esm/i18n/spec/node.d.ts +12 -0
  132. package/dist/esm/i18n/spec/specManager.d.ts +16 -0
  133. package/dist/esm/i18n/sv-se.d.ts +1 -0
  134. package/dist/esm/i18n/sv-se.js +63 -0
  135. package/dist/esm/i18n/tr-tr.d.ts +1 -0
  136. package/dist/esm/i18n/tr-tr.js +63 -0
  137. package/dist/esm/i18n/ui/components/contextMenu.d.ts +21 -0
  138. package/dist/esm/i18n/ui/components/layout.d.ts +36 -0
  139. package/dist/esm/i18n/ui/components/popup.d.ts +21 -0
  140. package/dist/esm/i18n/ui/components/switch.d.ts +17 -0
  141. package/dist/esm/i18n/ui/components/tabs.d.ts +12 -0
  142. package/dist/esm/i18n/ui/components/toolbar/customPopupBody.d.ts +16 -0
  143. package/dist/esm/i18n/ui/components/toolbar/headingPopupBody.d.ts +12 -0
  144. package/dist/esm/i18n/ui/components/toolbar/imagePopupBody.d.ts +30 -0
  145. package/dist/esm/i18n/ui/components/toolbar/linkPopupBody.d.ts +18 -0
  146. package/dist/esm/i18n/ui/components/toolbar/tablePopupBody.d.ts +29 -0
  147. package/dist/esm/i18n/ui/components/toolbar/toolbar.d.ts +45 -0
  148. package/dist/esm/i18n/ui/components/toolbar/toolbarGroup.d.ts +21 -0
  149. package/dist/esm/i18n/ui/toolbarItemFactory.d.ts +13 -0
  150. package/dist/esm/i18n/ui/vdom/commit.d.ts +2 -0
  151. package/dist/esm/i18n/ui/vdom/component.d.ts +10 -0
  152. package/dist/esm/i18n/ui/vdom/dom.d.ts +6 -0
  153. package/dist/esm/i18n/ui/vdom/render.d.ts +4 -0
  154. package/dist/esm/i18n/ui/vdom/renderer.d.ts +4 -0
  155. package/dist/esm/i18n/ui/vdom/template.d.ts +3 -0
  156. package/dist/esm/i18n/ui/vdom/vnode.d.ts +30 -0
  157. package/dist/esm/i18n/uk-ua.d.ts +1 -0
  158. package/dist/esm/i18n/uk-ua.js +63 -0
  159. package/dist/esm/i18n/utils/common.d.ts +19 -0
  160. package/dist/esm/i18n/utils/constants.d.ts +8 -0
  161. package/dist/esm/i18n/utils/dom.d.ts +25 -0
  162. package/dist/esm/i18n/utils/map.d.ts +19 -0
  163. package/dist/esm/i18n/utils/markdown.d.ts +23 -0
  164. package/dist/esm/i18n/viewer.d.ts +77 -0
  165. package/dist/esm/i18n/widget/rules.d.ts +28 -0
  166. package/dist/esm/i18n/widget/widgetNode.d.ts +28 -0
  167. package/dist/esm/i18n/wysiwyg/adaptor/mdLikeNode.d.ts +5 -0
  168. package/dist/esm/i18n/wysiwyg/adaptor/wwToDOMAdaptor.d.ts +13 -0
  169. package/dist/esm/i18n/wysiwyg/clipboard/paste.d.ts +6 -0
  170. package/dist/esm/i18n/wysiwyg/clipboard/pasteMsoList.d.ts +2 -0
  171. package/dist/esm/i18n/wysiwyg/clipboard/pasteTextParser.d.ts +2 -0
  172. package/dist/esm/i18n/wysiwyg/clipboard/pasteToTable.d.ts +3 -0
  173. package/dist/esm/i18n/wysiwyg/command/list.d.ts +7 -0
  174. package/dist/esm/i18n/wysiwyg/command/table.d.ts +16 -0
  175. package/dist/esm/i18n/wysiwyg/helper/node.d.ts +37 -0
  176. package/dist/esm/i18n/wysiwyg/helper/table.d.ts +25 -0
  177. package/dist/esm/i18n/wysiwyg/helper/tableOffsetMap.d.ts +88 -0
  178. package/dist/esm/i18n/wysiwyg/markdownInputRules.d.ts +3 -0
  179. package/dist/esm/i18n/wysiwyg/marks/code.d.ts +31 -0
  180. package/dist/esm/i18n/wysiwyg/marks/emph.d.ts +34 -0
  181. package/dist/esm/i18n/wysiwyg/marks/link.d.ts +59 -0
  182. package/dist/esm/i18n/wysiwyg/marks/strike.d.ts +31 -0
  183. package/dist/esm/i18n/wysiwyg/marks/strong.d.ts +34 -0
  184. package/dist/esm/i18n/wysiwyg/nodes/blockQuote.d.ts +33 -0
  185. package/dist/esm/i18n/wysiwyg/nodes/bulletList.d.ts +43 -0
  186. package/dist/esm/i18n/wysiwyg/nodes/codeBlock.d.ts +45 -0
  187. package/dist/esm/i18n/wysiwyg/nodes/customBlock.d.ts +26 -0
  188. package/dist/esm/i18n/wysiwyg/nodes/doc.d.ts +7 -0
  189. package/dist/esm/i18n/wysiwyg/nodes/frontMatter.d.ts +21 -0
  190. package/dist/esm/i18n/wysiwyg/nodes/hardBreak.d.ts +14 -0
  191. package/dist/esm/i18n/wysiwyg/nodes/heading.d.ts +38 -0
  192. package/dist/esm/i18n/wysiwyg/nodes/html.d.ts +11 -0
  193. package/dist/esm/i18n/wysiwyg/nodes/htmlComment.d.ts +21 -0
  194. package/dist/esm/i18n/wysiwyg/nodes/image.d.ts +45 -0
  195. package/dist/esm/i18n/wysiwyg/nodes/listItem.d.ts +36 -0
  196. package/dist/esm/i18n/wysiwyg/nodes/orderedList.d.ts +39 -0
  197. package/dist/esm/i18n/wysiwyg/nodes/paragraph.d.ts +21 -0
  198. package/dist/esm/i18n/wysiwyg/nodes/table.d.ts +80 -0
  199. package/dist/esm/i18n/wysiwyg/nodes/tableBody.d.ts +26 -0
  200. package/dist/esm/i18n/wysiwyg/nodes/tableBodyCell.d.ts +36 -0
  201. package/dist/esm/i18n/wysiwyg/nodes/tableHead.d.ts +26 -0
  202. package/dist/esm/i18n/wysiwyg/nodes/tableHeadCell.d.ts +39 -0
  203. package/dist/esm/i18n/wysiwyg/nodes/tableRow.d.ts +26 -0
  204. package/dist/esm/i18n/wysiwyg/nodes/text.d.ts +14 -0
  205. package/dist/esm/i18n/wysiwyg/nodes/thematicBreak.d.ts +33 -0
  206. package/dist/esm/i18n/wysiwyg/nodeview/codeBlockView.d.ts +29 -0
  207. package/dist/esm/i18n/wysiwyg/nodeview/customBlockView.d.ts +29 -0
  208. package/dist/esm/i18n/wysiwyg/nodeview/imageView.d.ts +20 -0
  209. package/dist/esm/i18n/wysiwyg/plugins/selection/cellSelection.d.ts +14 -0
  210. package/dist/esm/i18n/wysiwyg/plugins/selection/tableSelection.d.ts +2 -0
  211. package/dist/esm/i18n/wysiwyg/plugins/selection/tableSelectionView.d.ts +19 -0
  212. package/dist/esm/i18n/wysiwyg/plugins/tableContextMenu.d.ts +3 -0
  213. package/dist/esm/i18n/wysiwyg/plugins/task.d.ts +2 -0
  214. package/dist/esm/i18n/wysiwyg/plugins/toolbarState.d.ts +3 -0
  215. package/dist/esm/i18n/wysiwyg/specCreator.d.ts +3 -0
  216. package/dist/esm/i18n/wysiwyg/wwEditor.d.ts +57 -0
  217. package/dist/esm/i18n/zh-cn.d.ts +1 -0
  218. package/dist/esm/i18n/zh-cn.js +63 -0
  219. package/dist/esm/i18n/zh-tw.d.ts +1 -0
  220. package/dist/esm/i18n/zh-tw.js +63 -0
  221. package/dist/esm/index.js +25133 -0
  222. package/dist/esm/indexViewer.js +12757 -0
  223. package/dist/i18n/ar.js +162 -0
  224. package/dist/i18n/cs-cz.js +162 -0
  225. package/dist/i18n/de-de.js +162 -0
  226. package/dist/i18n/es-es.js +162 -0
  227. package/dist/i18n/fi-fi.js +162 -0
  228. package/dist/i18n/fr-fr.js +162 -0
  229. package/dist/i18n/gl-es.js +162 -0
  230. package/dist/i18n/hr-hr.js +162 -0
  231. package/dist/i18n/it-it.js +162 -0
  232. package/dist/i18n/ja-jp.js +162 -0
  233. package/dist/i18n/ko-kr.js +162 -0
  234. package/dist/i18n/nb-no.js +162 -0
  235. package/dist/i18n/nl-nl.js +162 -0
  236. package/dist/i18n/pl-pl.js +162 -0
  237. package/dist/i18n/pt-br.js +162 -0
  238. package/dist/i18n/ru-ru.js +163 -0
  239. package/dist/i18n/sv-se.js +162 -0
  240. package/dist/i18n/tr-tr.js +162 -0
  241. package/dist/i18n/uk-ua.js +162 -0
  242. package/dist/i18n/zh-cn.js +162 -0
  243. package/dist/i18n/zh-tw.js +162 -0
  244. package/dist/theme/toastui-editor-dark.css +474 -0
  245. package/dist/toastui-editor-only.css +1068 -0
  246. package/dist/toastui-editor-viewer.css +492 -0
  247. package/dist/toastui-editor-viewer.js +14079 -0
  248. package/dist/toastui-editor.css +1606 -0
  249. package/dist/toastui-editor.js +26464 -0
  250. package/package.json +95 -0
  251. package/types/convertor.d.ts +143 -0
  252. package/types/editor.d.ts +383 -0
  253. package/types/event.d.ts +56 -0
  254. package/types/index.d.ts +70 -0
  255. package/types/map.d.ts +8 -0
  256. package/types/markdown.d.ts +60 -0
  257. package/types/plugin.d.ts +59 -0
  258. package/types/prosemirror-commands.d.ts +15 -0
  259. package/types/prosemirror-model.d.ts +15 -0
  260. package/types/prosemirror-transform.d.ts +35 -0
  261. package/types/spec.d.ts +42 -0
  262. package/types/toastmark.d.ts +357 -0
  263. package/types/toastui-editor-viewer.d.ts +39 -0
  264. package/types/ui.d.ts +165 -0
  265. 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 Japanese
12
+ * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
13
+ */
14
+ Editor.setLanguage(['ja', 'ja-JP'], {
15
+ Markdown: 'マークダウン',
16
+ WYSIWYG: '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': 'イメージURL',
38
+ 'Select image file': '画像ファイル選択',
39
+ 'Choose a file': 'ファイルの選択',
40
+ 'No file': 'ファイルがない',
41
+ Description: 'ディスクリプション ',
42
+ OK: 'はい',
43
+ More: 'もっと',
44
+ Cancel: 'キャンセル',
45
+ File: 'ファイル',
46
+ URL: '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 @@
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 Korean
12
+ * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
13
+ */
14
+ Editor.setLanguage(['ko', 'ko-KR'], {
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,55 @@
1
+ import { ProsemirrorNode, Schema } from 'prosemirror-model';
2
+ import { ListItemMdNode, MdNode, ToastMark } from '@licium/toastmark';
3
+ export interface ToListContext<T = ListItemMdNode> {
4
+ mdNode: T;
5
+ line: number;
6
+ toastMark: ToastMark;
7
+ doc: ProsemirrorNode;
8
+ startLine: number;
9
+ }
10
+ export declare type ExtendListContext = Omit<ToListContext, 'startLine'>;
11
+ export interface ChangedListInfo {
12
+ line: number;
13
+ text: string;
14
+ }
15
+ interface ToListResult {
16
+ changedResults: ChangedListInfo[];
17
+ firstIndex?: number;
18
+ lastIndex?: number;
19
+ }
20
+ declare type ExtendedResult = {
21
+ listSyntax: string;
22
+ changedResults?: ChangedListInfo[];
23
+ lastIndex?: number;
24
+ };
25
+ declare type ListType = 'bullet' | 'ordered';
26
+ declare type ListToListFn = (context: ToListContext) => ToListResult;
27
+ declare type NodeToListFn = (context: ToListContext<MdNode>) => ToListResult;
28
+ declare type ExtendListFn = (context: ExtendListContext) => ExtendedResult;
29
+ interface ListToList {
30
+ bullet: ListToListFn;
31
+ ordered: ListToListFn;
32
+ task: ListToListFn;
33
+ }
34
+ interface NodeToList {
35
+ bullet: NodeToListFn;
36
+ ordered: NodeToListFn;
37
+ task: NodeToListFn;
38
+ }
39
+ interface ExtendList {
40
+ bullet: ExtendListFn;
41
+ ordered: ExtendListFn;
42
+ }
43
+ export declare const reList: RegExp;
44
+ export declare const reOrderedList: RegExp;
45
+ export declare const reOrderedListGroup: RegExp;
46
+ export declare const reCanBeTaskList: RegExp;
47
+ export declare function getListType(text: string): ListType;
48
+ export declare const otherListToList: ListToList;
49
+ export declare const otherNodeToList: NodeToList;
50
+ export declare const extendList: ExtendList;
51
+ export declare function getReorderedListInfo(doc: ProsemirrorNode, schema: Schema, line: number, ordinalNum: number, prevIndentLength: number): {
52
+ nodes: import("prosemirror-model").Node[];
53
+ line: number;
54
+ };
55
+ export {};
@@ -0,0 +1,5 @@
1
+ import { EditorCommand } from '@t/spec';
2
+ declare type ConditionFn = (text: string) => boolean;
3
+ declare type Condition = RegExp | ConditionFn;
4
+ export declare function toggleMark(condition: Condition, syntax: string): EditorCommand;
5
+ export {};
@@ -0,0 +1,22 @@
1
+ import { Selection } from 'prosemirror-state';
2
+ import { ProsemirrorNode } from 'prosemirror-model';
3
+ import { Sourcepos, MdPos } from '@licium/toastmark';
4
+ export declare function resolveSelectionPos(selection: Selection): number[];
5
+ export declare function getWidgetNodePos(node: ProsemirrorNode, chPos: number, direction?: 1 | -1): number;
6
+ export declare function getEditorToMdPos(doc: ProsemirrorNode, from: number, to?: number): Sourcepos;
7
+ export declare function getStartPosListPerLine(doc: ProsemirrorNode, endIndex: number): number[];
8
+ export declare function getMdToEditorPos(doc: ProsemirrorNode, startPos: MdPos, endPos: MdPos): number[];
9
+ export declare function getRangeInfo(selection: Selection): {
10
+ startFromOffset: number;
11
+ endFromOffset: number;
12
+ startToOffset: number;
13
+ endToOffset: number;
14
+ startIndex: number;
15
+ endIndex: number;
16
+ from: number;
17
+ to: number;
18
+ };
19
+ export declare function getNodeContentOffsetRange(doc: ProsemirrorNode, targetIndex: number): {
20
+ startOffset: number;
21
+ endOffset: number;
22
+ };
@@ -0,0 +1,3 @@
1
+ import { ProsemirrorNode } from 'prosemirror-model';
2
+ export declare function getTextByMdLine(doc: ProsemirrorNode, mdLine: number): string;
3
+ export declare function getTextContent(doc: ProsemirrorNode, index: number): string;
@@ -0,0 +1,5 @@
1
+ import { HTMLConvertor } from '@t/toastmark';
2
+ import { LinkAttributes, CustomHTMLRenderer } from '@t/editor';
3
+ export declare function getHTMLRenderConvertors(linkAttributes: LinkAttributes | null, customConvertors: CustomHTMLRenderer): {
4
+ [x: string]: HTMLConvertor | undefined;
5
+ };
@@ -0,0 +1,19 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import { Command } from 'prosemirror-state';
3
+ import { EditorCommand } from '@t/spec';
4
+ import Mark from '@/spec/mark';
5
+ export declare const reBlockQuote: RegExp;
6
+ export declare class BlockQuote extends Mark {
7
+ get name(): string;
8
+ get schema(): {
9
+ toDOM(): DOMOutputSpec;
10
+ };
11
+ private createBlockQuoteText;
12
+ private extendBlockQuote;
13
+ commands(): EditorCommand;
14
+ keymaps(): {
15
+ 'alt-q': Command;
16
+ 'alt-Q': Command;
17
+ Enter: Command;
18
+ };
19
+ }
@@ -0,0 +1,25 @@
1
+ import { DOMOutputSpec, Mark as ProsemirrorMark } from 'prosemirror-model';
2
+ import { EditorCommand } from '@t/spec';
3
+ import Mark from '@/spec/mark';
4
+ export declare class Code extends Mark {
5
+ get name(): string;
6
+ get schema(): {
7
+ attrs: {
8
+ start: {
9
+ default: boolean;
10
+ };
11
+ end: {
12
+ default: boolean;
13
+ };
14
+ marked: {
15
+ default: boolean;
16
+ };
17
+ };
18
+ toDOM(mark: ProsemirrorMark): DOMOutputSpec;
19
+ };
20
+ commands(): EditorCommand;
21
+ keymaps(): {
22
+ 'Shift-Mod-c': import("prosemirror-state").Command;
23
+ 'Shift-Mod-C': import("prosemirror-state").Command;
24
+ };
25
+ }
@@ -0,0 +1,18 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import { Command } from 'prosemirror-state';
3
+ import { EditorCommand, MdSpecContext } from '@t/spec';
4
+ import Mark from '@/spec/mark';
5
+ export declare class CodeBlock extends Mark {
6
+ context: MdSpecContext;
7
+ get name(): string;
8
+ get schema(): {
9
+ toDOM(): DOMOutputSpec;
10
+ };
11
+ commands(): EditorCommand;
12
+ private keepIndentation;
13
+ keymaps(): {
14
+ 'Shift-Mod-p': Command;
15
+ 'Shift-Mod-P': Command;
16
+ Enter: Command;
17
+ };
18
+ }
@@ -0,0 +1,10 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import Mark from '@/spec/mark';
3
+ import { EditorCommand } from '@t/spec';
4
+ export declare class CustomBlock extends Mark {
5
+ get name(): string;
6
+ get schema(): {
7
+ toDOM(): DOMOutputSpec;
8
+ };
9
+ commands(): EditorCommand;
10
+ }
@@ -0,0 +1,17 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import { EditorCommand } from '@t/spec';
3
+ import Mark from '@/spec/mark';
4
+ export declare class Emph extends Mark {
5
+ get name(): string;
6
+ get schema(): {
7
+ toDOM(): DOMOutputSpec;
8
+ };
9
+ private italic;
10
+ commands(): {
11
+ italic: EditorCommand<import("@t/spec").DefaultPayload>;
12
+ };
13
+ keymaps(): {
14
+ 'Mod-i': import("prosemirror-state").Command;
15
+ 'Mod-I': import("prosemirror-state").Command;
16
+ };
17
+ }
@@ -0,0 +1,23 @@
1
+ import { DOMOutputSpec, Mark as ProsemirrorMark } from 'prosemirror-model';
2
+ import { EditorCommand } from '@t/spec';
3
+ import Mark from '@/spec/mark';
4
+ interface Payload {
5
+ level: number;
6
+ }
7
+ export declare class Heading extends Mark {
8
+ get name(): string;
9
+ get schema(): {
10
+ attrs: {
11
+ level: {
12
+ default: number;
13
+ };
14
+ seText: {
15
+ default: boolean;
16
+ };
17
+ };
18
+ toDOM({ attrs }: ProsemirrorMark): DOMOutputSpec;
19
+ };
20
+ private createHeadingText;
21
+ commands(): EditorCommand<Payload>;
22
+ }
23
+ export {};
@@ -0,0 +1,8 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import Mark from '@/spec/mark';
3
+ export declare class Html extends Mark {
4
+ get name(): string;
5
+ get schema(): {
6
+ toDOM(): DOMOutputSpec;
7
+ };
8
+ }
@@ -0,0 +1,29 @@
1
+ import { DOMOutputSpec, Mark as ProsemirrorMark } from 'prosemirror-model';
2
+ import { EditorCommand } from '@t/spec';
3
+ import Mark from '@/spec/mark';
4
+ interface Payload {
5
+ linkText: string;
6
+ altText: string;
7
+ linkUrl: string;
8
+ imageUrl: string;
9
+ }
10
+ export declare class Link extends Mark {
11
+ get name(): string;
12
+ get schema(): {
13
+ attrs: {
14
+ url: {
15
+ default: boolean;
16
+ };
17
+ desc: {
18
+ default: boolean;
19
+ };
20
+ };
21
+ toDOM({ attrs }: ProsemirrorMark): DOMOutputSpec;
22
+ };
23
+ private addLinkOrImage;
24
+ commands(): {
25
+ addImage: EditorCommand<Payload>;
26
+ addLink: EditorCommand<Payload>;
27
+ };
28
+ }
29
+ export {};
@@ -0,0 +1,42 @@
1
+ import { DOMOutputSpec, Mark as ProsemirrorMark } from 'prosemirror-model';
2
+ import { Command } from 'prosemirror-state';
3
+ import { EditorCommand, MdSpecContext } from '@t/spec';
4
+ import Mark from '@/spec/mark';
5
+ export declare class ListItem extends Mark {
6
+ context: MdSpecContext;
7
+ get name(): string;
8
+ get schema(): {
9
+ attrs: {
10
+ odd: {
11
+ default: boolean;
12
+ };
13
+ even: {
14
+ default: boolean;
15
+ };
16
+ listStyle: {
17
+ default: boolean;
18
+ };
19
+ };
20
+ toDOM({ attrs }: ProsemirrorMark): DOMOutputSpec;
21
+ };
22
+ private extendList;
23
+ private toList;
24
+ private changeToListPerLine;
25
+ private toggleTask;
26
+ commands(): {
27
+ bulletList: EditorCommand<import("@t/spec").DefaultPayload>;
28
+ orderedList: EditorCommand<import("@t/spec").DefaultPayload>;
29
+ taskList: EditorCommand<import("@t/spec").DefaultPayload>;
30
+ };
31
+ keymaps(): {
32
+ 'Mod-u': Command;
33
+ 'Mod-U': Command;
34
+ 'Mod-o': Command;
35
+ 'Mod-O': Command;
36
+ 'alt-t': Command;
37
+ 'alt-T': Command;
38
+ 'Shift-Ctrl-x': Command;
39
+ 'Shift-Ctrl-X': Command;
40
+ Enter: Command;
41
+ };
42
+ }
@@ -0,0 +1,32 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import Mark from '@/spec/mark';
3
+ export declare class TaskDelimiter extends Mark {
4
+ get name(): string;
5
+ get schema(): {
6
+ toDOM(): DOMOutputSpec;
7
+ };
8
+ }
9
+ export declare class Delimiter extends Mark {
10
+ get name(): string;
11
+ get schema(): {
12
+ toDOM(): DOMOutputSpec;
13
+ };
14
+ }
15
+ export declare class Meta extends Mark {
16
+ get name(): string;
17
+ get schema(): {
18
+ toDOM(): DOMOutputSpec;
19
+ };
20
+ }
21
+ export declare class MarkedText extends Mark {
22
+ get name(): string;
23
+ get schema(): {
24
+ toDOM(): DOMOutputSpec;
25
+ };
26
+ }
27
+ export declare class TableCell extends Mark {
28
+ get name(): string;
29
+ get schema(): {
30
+ toDOM(): DOMOutputSpec;
31
+ };
32
+ }
@@ -0,0 +1,14 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import { EditorCommand } from '@t/spec';
3
+ import Mark from '@/spec/mark';
4
+ export declare class Strike extends Mark {
5
+ get name(): string;
6
+ get schema(): {
7
+ toDOM(): DOMOutputSpec;
8
+ };
9
+ commands(): EditorCommand;
10
+ keymaps(): {
11
+ 'Mod-s': import("prosemirror-state").Command;
12
+ 'Mod-S': import("prosemirror-state").Command;
13
+ };
14
+ }
@@ -0,0 +1,18 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import { EditorCommand } from '@t/spec';
3
+ import Mark from '@/spec/mark';
4
+ export declare const reStrong: RegExp;
5
+ export declare class Strong extends Mark {
6
+ get name(): string;
7
+ get schema(): {
8
+ toDOM(): DOMOutputSpec;
9
+ };
10
+ private bold;
11
+ commands(): {
12
+ bold: EditorCommand<import("@t/spec").DefaultPayload>;
13
+ };
14
+ keymaps(): {
15
+ 'Mod-b': import("prosemirror-state").Command;
16
+ 'Mod-B': import("prosemirror-state").Command;
17
+ };
18
+ }
@@ -0,0 +1,27 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import { Command } from 'prosemirror-state';
3
+ import { EditorCommand, MdSpecContext } from '@t/spec';
4
+ import Mark from '@/spec/mark';
5
+ interface Payload {
6
+ columnCount: number;
7
+ rowCount: number;
8
+ }
9
+ export declare class Table extends Mark {
10
+ context: MdSpecContext;
11
+ get name(): string;
12
+ get schema(): {
13
+ toDOM(): DOMOutputSpec;
14
+ };
15
+ private extendTable;
16
+ private moveTableCell;
17
+ private addTable;
18
+ commands(): {
19
+ addTable: EditorCommand<Payload>;
20
+ };
21
+ keymaps(): {
22
+ Enter: Command;
23
+ Tab: Command;
24
+ 'Shift-Tab': Command;
25
+ };
26
+ }
27
+ export {};
@@ -0,0 +1,17 @@
1
+ import { DOMOutputSpec } from 'prosemirror-model';
2
+ import { EditorCommand } from '@t/spec';
3
+ import Mark from '@/spec/mark';
4
+ export declare class ThematicBreak extends Mark {
5
+ get name(): string;
6
+ get schema(): {
7
+ toDOM(): DOMOutputSpec;
8
+ };
9
+ private hr;
10
+ commands(): {
11
+ hr: EditorCommand<import("@t/spec").DefaultPayload>;
12
+ };
13
+ keymaps(): {
14
+ 'Mod-l': import("prosemirror-state").Command;
15
+ 'Mod-L': import("prosemirror-state").Command;
16
+ };
17
+ }
@@ -0,0 +1,48 @@
1
+ import { EditorView } from 'prosemirror-view';
2
+ import { MdPos, ToastMark } from '@licium/toastmark';
3
+ import { MdContext } from '@t/spec';
4
+ import { Emitter } from '@t/event';
5
+ import { WidgetStyle } from '@t/editor';
6
+ import EditorBase from '@/base';
7
+ import SpecManager from '@/spec/specManager';
8
+ import { PluginProp } from '@t/plugin';
9
+ interface MarkdownOptions {
10
+ toastMark: ToastMark;
11
+ useCommandShortcut?: boolean;
12
+ mdPlugins?: PluginProp[];
13
+ }
14
+ export default class MdEditor extends EditorBase {
15
+ private toastMark;
16
+ private clipboard;
17
+ context: MdContext;
18
+ constructor(eventEmitter: Emitter, options: MarkdownOptions);
19
+ private toggleActive;
20
+ private createClipboard;
21
+ createContext(): {
22
+ toastMark: ToastMark;
23
+ schema: import("prosemirror-model").Schema<any, any>;
24
+ eventEmitter: Emitter;
25
+ };
26
+ createSpecs(): SpecManager;
27
+ createPlugins(): import("prosemirror-state").Plugin<any>[];
28
+ createView(): EditorView;
29
+ createCommands(): import("@t/spec").EditorAllCommandMap<import("@t/spec").DefaultPayload>;
30
+ private captureCopy;
31
+ private updateMarkdown;
32
+ private getChanged;
33
+ setSelection(start: MdPos, end?: MdPos): void;
34
+ replaceSelection(text: string, start?: MdPos, end?: MdPos): void;
35
+ deleteSelection(start?: MdPos, end?: MdPos): void;
36
+ getSelectedText(start?: MdPos, end?: MdPos): string;
37
+ getSelection(): import("@licium/toastmark").Sourcepos;
38
+ setMarkdown(markdown: string, cursorToEnd?: boolean, addToHistory?: boolean): void;
39
+ addWidget(node: Node, style: WidgetStyle, mdPos?: MdPos): void;
40
+ replaceWithWidget(start: MdPos, end: MdPos, text: string): void;
41
+ getRangeInfoOfNode(pos?: MdPos): {
42
+ range: import("@licium/toastmark").Sourcepos;
43
+ type: import("@licium/toastmark").MdNodeType;
44
+ };
45
+ getMarkdown(): string;
46
+ getToastMark(): ToastMark;
47
+ }
48
+ export {};
@@ -0,0 +1,50 @@
1
+ import { EditResult, Renderer } from '@licium/toastmark';
2
+ import { Emitter } from '@t/event';
3
+ import { CustomHTMLRenderer, LinkAttributes } from '@t/editor';
4
+ export declare const CLASS_HIGHLIGHT: string;
5
+ declare type Sanitizer = (html: string) => string;
6
+ interface Options {
7
+ linkAttributes: LinkAttributes | null;
8
+ customHTMLRenderer: CustomHTMLRenderer;
9
+ isViewer: boolean;
10
+ highlight?: boolean;
11
+ sanitizer: Sanitizer;
12
+ }
13
+ /**
14
+ * Class Markdown Preview
15
+ * @param {HTMLElement} el - base element
16
+ * @param {eventEmitter} eventEmitter - event manager
17
+ * @param {object} options
18
+ * @param {boolean} options.isViewer - true for view-only mode
19
+ * @param {boolean} options.highlight - true for using live-highlight feature
20
+ * @param {object} opitons.linkAttributes - attributes for link element
21
+ * @param {object} opitons.customHTMLRenderer - map of custom HTML render functions
22
+ *
23
+ * @ignore
24
+ */
25
+ declare class MarkdownPreview {
26
+ el: HTMLElement | null;
27
+ previewContent: HTMLElement;
28
+ private eventEmitter;
29
+ private isViewer;
30
+ private cursorNodeId;
31
+ private renderer;
32
+ private sanitizer;
33
+ constructor(eventEmitter: Emitter, options: Options);
34
+ private initContentSection;
35
+ private toggleActive;
36
+ private initEvent;
37
+ private removeHighlight;
38
+ private updateCursorNode;
39
+ private getElementByNodeId;
40
+ update(changed: EditResult[]): void;
41
+ replaceRangeNodes(editResult: EditResult): void;
42
+ getRenderer(): Renderer;
43
+ destroy(): void;
44
+ getElement(): HTMLElement;
45
+ getHTML(): string;
46
+ setHTML(html: string): void;
47
+ setHeight(height: number): void;
48
+ setMinHeight(minHeight: number): void;
49
+ }
50
+ export default MarkdownPreview;
@@ -0,0 +1,7 @@
1
+ import Node from '@/spec/node';
2
+ export declare class Doc extends Node {
3
+ get name(): string;
4
+ get schema(): {
5
+ content: string;
6
+ };
7
+ }