reactjs-tiptap-editor-pro 0.2.29 → 0.2.30

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 (333) hide show
  1. package/package.json +4 -60
  2. package/src/components/ActionButton.tsx +103 -0
  3. package/src/components/ActionMenuButton.tsx +76 -0
  4. package/src/components/BubbleMenu.tsx +93 -0
  5. package/src/components/CharactorCount.tsx +50 -0
  6. package/src/components/ColorPicker.tsx +272 -0
  7. package/src/components/RichTextEditor.tsx +212 -0
  8. package/src/components/SizeSetter/SizeSetter.tsx +102 -0
  9. package/src/components/Toolbar.tsx +108 -0
  10. package/src/components/icons/Activity.tsx +19 -0
  11. package/src/components/icons/Animas.tsx +24 -0
  12. package/src/components/icons/AspectRatio.tsx +13 -0
  13. package/src/components/icons/Blockquote.tsx +17 -0
  14. package/src/components/icons/ColumnAddLeft.tsx +7 -0
  15. package/src/components/icons/ColumnAddRight.tsx +7 -0
  16. package/src/components/icons/DeleteColumn.tsx +26 -0
  17. package/src/components/icons/DeleteRow.tsx +26 -0
  18. package/src/components/icons/Direction.tsx +7 -0
  19. package/src/components/icons/Excalidraw.tsx +7 -0
  20. package/src/components/icons/ExportPdf.tsx +8 -0
  21. package/src/components/icons/ExportWord.tsx +24 -0
  22. package/src/components/icons/FileWordOutline.tsx +13 -0
  23. package/src/components/icons/Flag.tsx +19 -0
  24. package/src/components/icons/Food.tsx +20 -0
  25. package/src/components/icons/GIfIcon.tsx +10 -0
  26. package/src/components/icons/Icon.tsx +30 -0
  27. package/src/components/icons/ImportWord.tsx +23 -0
  28. package/src/components/icons/LeftToRight.tsx +7 -0
  29. package/src/components/icons/LineHeight.tsx +13 -0
  30. package/src/components/icons/MenuDown.tsx +24 -0
  31. package/src/components/icons/Mermaid.tsx +13 -0
  32. package/src/components/icons/NoFill.tsx +7 -0
  33. package/src/components/icons/Object.tsx +24 -0
  34. package/src/components/icons/RightToLeft.tsx +7 -0
  35. package/src/components/icons/SizeL.tsx +9 -0
  36. package/src/components/icons/SizeM.tsx +13 -0
  37. package/src/components/icons/SizeS.tsx +13 -0
  38. package/src/components/icons/Symbol.tsx +19 -0
  39. package/src/components/icons/Travel.tsx +24 -0
  40. package/src/components/icons/Twitter.tsx +7 -0
  41. package/src/components/icons/icons.ts +212 -0
  42. package/src/components/icons/index.ts +12 -0
  43. package/src/components/index.ts +9 -0
  44. package/src/components/menus/bubble.ts +395 -0
  45. package/src/components/menus/components/BubbleMenuContent.tsx +15 -0
  46. package/src/components/menus/components/BubbleMenuDrawer.tsx +128 -0
  47. package/src/components/menus/components/BubbleMenuExcalidraw.tsx +91 -0
  48. package/src/components/menus/components/BubbleMenuIframe.tsx +143 -0
  49. package/src/components/menus/components/BubbleMenuKatex.tsx +136 -0
  50. package/src/components/menus/components/BubbleMenuLink.tsx +99 -0
  51. package/src/components/menus/components/BubbleMenuMedia.tsx +235 -0
  52. package/src/components/menus/components/BubbleMenuMermaid.tsx +128 -0
  53. package/src/components/menus/components/BubbleMenuText.tsx +102 -0
  54. package/src/components/menus/components/BubbleMenuTwitter.tsx +91 -0
  55. package/src/components/menus/components/ColumnsBubbleMenu.tsx +59 -0
  56. package/src/components/menus/components/ContentMenu.tsx +396 -0
  57. package/src/components/menus/components/TableBubbleMenu.tsx +362 -0
  58. package/src/components/menus/index.ts +7 -0
  59. package/src/components/ui/button.tsx +56 -0
  60. package/src/components/ui/checkbox.tsx +30 -0
  61. package/src/components/ui/dialog.tsx +128 -0
  62. package/src/components/ui/dropdown-menu.tsx +203 -0
  63. package/src/components/ui/emoji-picker.tsx +166 -0
  64. package/src/components/ui/index.ts +14 -0
  65. package/src/components/ui/input.tsx +25 -0
  66. package/src/components/ui/label.tsx +26 -0
  67. package/src/components/ui/popover.tsx +31 -0
  68. package/src/components/ui/select.tsx +162 -0
  69. package/src/components/ui/separator.tsx +31 -0
  70. package/src/components/ui/switch.tsx +29 -0
  71. package/src/components/ui/tabs.tsx +55 -0
  72. package/src/components/ui/textarea.tsx +24 -0
  73. package/src/components/ui/toast.tsx +129 -0
  74. package/src/components/ui/toaster.tsx +44 -0
  75. package/src/components/ui/toggle.tsx +45 -0
  76. package/src/components/ui/tooltip.tsx +30 -0
  77. package/src/components/ui/use-toast.ts +197 -0
  78. package/src/constants/index.ts +223 -0
  79. package/src/constants/resetCSS.ts +139 -0
  80. package/src/extension-bundle.ts +2 -0
  81. package/src/extensions/Attachment/Attachment.ts +144 -0
  82. package/src/extensions/Attachment/components/NodeViewAttachment/FileIcon.tsx +69 -0
  83. package/src/extensions/Attachment/components/NodeViewAttachment/FileIconString.ts +28 -0
  84. package/src/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.tsx +155 -0
  85. package/src/extensions/Attachment/components/NodeViewAttachment/index.module.scss +23 -0
  86. package/src/extensions/Attachment/index.ts +1 -0
  87. package/src/extensions/BaseKit.ts +253 -0
  88. package/src/extensions/Blockquote/Blockquote.ts +31 -0
  89. package/src/extensions/Blockquote/index.ts +1 -0
  90. package/src/extensions/Bold/Bold.ts +26 -0
  91. package/src/extensions/Bold/index.ts +1 -0
  92. package/src/extensions/BulletList/BulletList.ts +28 -0
  93. package/src/extensions/BulletList/index.ts +1 -0
  94. package/src/extensions/Clear/Clear.ts +24 -0
  95. package/src/extensions/Clear/index.ts +1 -0
  96. package/src/extensions/Code/Code.ts +26 -0
  97. package/src/extensions/Code/index.ts +1 -0
  98. package/src/extensions/CodeBlock/CodeBlock.ts +54 -0
  99. package/src/extensions/CodeBlock/components/CodeBlockActiveButton.tsx +66 -0
  100. package/src/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.tsx +89 -0
  101. package/src/extensions/CodeBlock/components/NodeViewCodeBlock/index.module.scss +81 -0
  102. package/src/extensions/CodeBlock/highlighter.ts +132 -0
  103. package/src/extensions/CodeBlock/index.ts +1 -0
  104. package/src/extensions/CodeBlock/shiki-plugin.ts +213 -0
  105. package/src/extensions/Color/Color.ts +52 -0
  106. package/src/extensions/Color/components/ColorActionButton.tsx +104 -0
  107. package/src/extensions/Color/index.ts +1 -0
  108. package/src/extensions/Document/Document.ts +8 -0
  109. package/src/extensions/Document/index.ts +1 -0
  110. package/src/extensions/Drawer/Drawer.ts +177 -0
  111. package/src/extensions/Drawer/components/ControlDrawer/ControlDrawer.module.scss +85 -0
  112. package/src/extensions/Drawer/components/ControlDrawer/ControlDrawer.tsx +598 -0
  113. package/src/extensions/Drawer/components/ControlDrawer/icon.tsx +500 -0
  114. package/src/extensions/Drawer/components/DrawerActiveButton.tsx +239 -0
  115. package/src/extensions/Drawer/components/EditDrawerBlock.tsx +238 -0
  116. package/src/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.tsx +260 -0
  117. package/src/extensions/Drawer/index.ts +1 -0
  118. package/src/extensions/Emoji/Emoji.ts +146 -0
  119. package/src/extensions/Emoji/components/EmojiList/EmojiList.tsx +103 -0
  120. package/src/extensions/Emoji/components/EmojiList/emojis.ts +1858 -0
  121. package/src/extensions/Emoji/components/EmojiPicker/EmojiPicker.tsx +61 -0
  122. package/src/extensions/Emoji/index.ts +1 -0
  123. package/src/extensions/Excalidraw/Excalidraw.ts +123 -0
  124. package/src/extensions/Excalidraw/components/ExcalidrawActiveButton.tsx +138 -0
  125. package/src/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.tsx +178 -0
  126. package/src/extensions/Excalidraw/components/NodeViewExcalidraw/index.module.scss +43 -0
  127. package/src/extensions/Excalidraw/index.ts +1 -0
  128. package/src/extensions/ExportPdf/ExportPdf.ts +25 -0
  129. package/src/extensions/ExportPdf/index.ts +1 -0
  130. package/src/extensions/ExportWord/ExportWord.ts +87 -0
  131. package/src/extensions/ExportWord/index.ts +1 -0
  132. package/src/extensions/FontFamily/FontFamily.ts +64 -0
  133. package/src/extensions/FontFamily/components/FontFamilyButton.tsx +97 -0
  134. package/src/extensions/FontFamily/index.ts +1 -0
  135. package/src/extensions/FontSize/FontSize.ts +119 -0
  136. package/src/extensions/FontSize/components/FontSizeMenuButton.tsx +84 -0
  137. package/src/extensions/FontSize/index.ts +1 -0
  138. package/src/extensions/FormatPainter/FormatPainter.ts +121 -0
  139. package/src/extensions/FormatPainter/index.ts +1 -0
  140. package/src/extensions/Heading/Heading.ts +57 -0
  141. package/src/extensions/Heading/components/HeadingButton.tsx +96 -0
  142. package/src/extensions/Heading/index.ts +1 -0
  143. package/src/extensions/Highlight/Highlight.ts +36 -0
  144. package/src/extensions/Highlight/components/HighlightActionButton.tsx +108 -0
  145. package/src/extensions/Highlight/index.ts +1 -0
  146. package/src/extensions/History/History.ts +39 -0
  147. package/src/extensions/History/components/HistoryActionButton.tsx +74 -0
  148. package/src/extensions/History/index.ts +1 -0
  149. package/src/extensions/HorizontalRule/HorizontalRule.ts +42 -0
  150. package/src/extensions/HorizontalRule/index.ts +1 -0
  151. package/src/extensions/Iframe/Iframe.ts +140 -0
  152. package/src/extensions/Iframe/components/IframeNodeView.tsx +92 -0
  153. package/src/extensions/Iframe/components/index.module.scss +40 -0
  154. package/src/extensions/Iframe/embed.ts +487 -0
  155. package/src/extensions/Iframe/index.ts +1 -0
  156. package/src/extensions/Image/Image.ts +303 -0
  157. package/src/extensions/Image/components/ActionImageButton.tsx +186 -0
  158. package/src/extensions/Image/components/ImageCropper.tsx +198 -0
  159. package/src/extensions/Image/components/ImageView.tsx +271 -0
  160. package/src/extensions/Image/index.ts +1 -0
  161. package/src/extensions/Image/store.ts +15 -0
  162. package/src/extensions/ImageGif/ImageGif.ts +176 -0
  163. package/src/extensions/ImageGif/components/ImageGifActionButton.tsx +138 -0
  164. package/src/extensions/ImageGif/components/ImageGifView.tsx +260 -0
  165. package/src/extensions/ImageGif/index.ts +1 -0
  166. package/src/extensions/ImportWord/ImportWord.ts +52 -0
  167. package/src/extensions/ImportWord/components/ImportWordButton.tsx +151 -0
  168. package/src/extensions/ImportWord/index.ts +1 -0
  169. package/src/extensions/Indent/Indent.ts +110 -0
  170. package/src/extensions/Indent/index.ts +1 -0
  171. package/src/extensions/Italic/Italic.ts +29 -0
  172. package/src/extensions/Italic/index.ts +1 -0
  173. package/src/extensions/Katex/Katex.ts +109 -0
  174. package/src/extensions/Katex/components/KatexActiveButton.tsx +117 -0
  175. package/src/extensions/Katex/components/KatexWrapper.tsx +53 -0
  176. package/src/extensions/Katex/index.ts +1 -0
  177. package/src/extensions/LineHeight/LineHeight.ts +76 -0
  178. package/src/extensions/LineHeight/components/LineHeightDropdown.tsx +93 -0
  179. package/src/extensions/LineHeight/index.ts +1 -0
  180. package/src/extensions/Link/Link.ts +92 -0
  181. package/src/extensions/Link/components/LinkEditBlock.tsx +110 -0
  182. package/src/extensions/Link/components/LinkEditPopover.tsx +46 -0
  183. package/src/extensions/Link/components/LinkViewBlock.tsx +54 -0
  184. package/src/extensions/Link/index.ts +1 -0
  185. package/src/extensions/ListItem/ListItem.ts +1 -0
  186. package/src/extensions/ListItem/index.ts +1 -0
  187. package/src/extensions/Mention/Mention.ts +100 -0
  188. package/src/extensions/Mention/components/NodeViewMentionList/NodeViewMentionList.tsx +94 -0
  189. package/src/extensions/Mention/components/NodeViewMentionList/index.module.scss +38 -0
  190. package/src/extensions/Mention/index.ts +1 -0
  191. package/src/extensions/Mermaid/Mermaid.ts +177 -0
  192. package/src/extensions/Mermaid/components/EditMermaidBlock.tsx +155 -0
  193. package/src/extensions/Mermaid/components/MermaidActiveButton.tsx +151 -0
  194. package/src/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.tsx +260 -0
  195. package/src/extensions/Mermaid/index.ts +1 -0
  196. package/src/extensions/MoreMark/MoreMark.ts +102 -0
  197. package/src/extensions/MoreMark/components/ActionMoreButton.tsx +97 -0
  198. package/src/extensions/MoreMark/index.ts +1 -0
  199. package/src/extensions/MultiColumn/Column.ts +36 -0
  200. package/src/extensions/MultiColumn/MultiColumn.ts +111 -0
  201. package/src/extensions/MultiColumn/components/ColumnActionButton.ts +22 -0
  202. package/src/extensions/MultiColumn/index.ts +3 -0
  203. package/src/extensions/OrderedList/OrderedList.ts +28 -0
  204. package/src/extensions/OrderedList/index.ts +1 -0
  205. package/src/extensions/SearchAndReplace/SearchAndReplace.ts +395 -0
  206. package/src/extensions/SearchAndReplace/components/SearchAndReplaceButton.tsx +190 -0
  207. package/src/extensions/SearchAndReplace/index.ts +1 -0
  208. package/src/extensions/Selection/Selection.ts +32 -0
  209. package/src/extensions/Selection/index.ts +1 -0
  210. package/src/extensions/SlashCommand/SlashCommand.ts +255 -0
  211. package/src/extensions/SlashCommand/components/CommandsList.tsx +180 -0
  212. package/src/extensions/SlashCommand/groups.ts +183 -0
  213. package/src/extensions/SlashCommand/index.ts +1 -0
  214. package/src/extensions/SlashCommand/types.ts +24 -0
  215. package/src/extensions/Strike/Strike.ts +26 -0
  216. package/src/extensions/Strike/index.ts +1 -0
  217. package/src/extensions/Subscript/Subscript.ts +88 -0
  218. package/src/extensions/Subscript/index.ts +1 -0
  219. package/src/extensions/Table/Cell.ts +131 -0
  220. package/src/extensions/Table/Header.ts +93 -0
  221. package/src/extensions/Table/Row.ts +8 -0
  222. package/src/extensions/Table/Table.ts +60 -0
  223. package/src/extensions/Table/cell-background.ts +112 -0
  224. package/src/extensions/Table/components/CreateTablePopover.tsx +132 -0
  225. package/src/extensions/Table/components/TableActionButton.tsx +42 -0
  226. package/src/extensions/Table/index.ts +6 -0
  227. package/src/extensions/Table/utils.ts +352 -0
  228. package/src/extensions/TableOfContent/TableOfContent.ts +124 -0
  229. package/src/extensions/TableOfContent/components/NodeViewTableOfContent.tsx +116 -0
  230. package/src/extensions/TableOfContent/components/TableOfContentActionButton.tsx +27 -0
  231. package/src/extensions/TableOfContent/components/index.module.scss +40 -0
  232. package/src/extensions/TableOfContent/index.ts +1 -0
  233. package/src/extensions/TaskList/TaskList.ts +46 -0
  234. package/src/extensions/TaskList/index.ts +1 -0
  235. package/src/extensions/TextAlign/TextAlign.ts +68 -0
  236. package/src/extensions/TextAlign/components/TextAlignMenuButton.tsx +103 -0
  237. package/src/extensions/TextAlign/index.ts +1 -0
  238. package/src/extensions/TextBubble/TextBubble.ts +22 -0
  239. package/src/extensions/TextBubble/components/TextDropdown.tsx +146 -0
  240. package/src/extensions/TextBubble/index.ts +1 -0
  241. package/src/extensions/TextDirection/TextDirection.ts +97 -0
  242. package/src/extensions/TextDirection/components/TextDirectionButton.tsx +103 -0
  243. package/src/extensions/TextDirection/index.ts +1 -0
  244. package/src/extensions/TrailingNode/TrailingNode.ts +71 -0
  245. package/src/extensions/TrailingNode/index.ts +1 -0
  246. package/src/extensions/Twitter/Twitter.ts +161 -0
  247. package/src/extensions/Twitter/components/FormEditLinkTwitter.tsx +68 -0
  248. package/src/extensions/Twitter/components/NodeViewTweet.tsx +30 -0
  249. package/src/extensions/Twitter/components/TwitterActiveButton.tsx +41 -0
  250. package/src/extensions/Twitter/index.ts +1 -0
  251. package/src/extensions/UnderLine/Underline.ts +30 -0
  252. package/src/extensions/UnderLine/index.ts +1 -0
  253. package/src/extensions/Video/Video.ts +204 -0
  254. package/src/extensions/Video/components/ActiveVideoButton.tsx +191 -0
  255. package/src/extensions/Video/index.ts +1 -0
  256. package/src/extensions/Video/store.ts +15 -0
  257. package/src/extensions/index.ts +122 -0
  258. package/src/hooks/useActive.tsx +24 -0
  259. package/src/hooks/useAttributes.tsx +45 -0
  260. package/src/hooks/useCopy.tsx +20 -0
  261. package/src/hooks/useEditorState.tsx +23 -0
  262. package/src/hooks/useExtension.tsx +29 -0
  263. package/src/index.ts +8 -0
  264. package/src/lib/utils.ts +7 -0
  265. package/src/locale-bundle.ts +3 -0
  266. package/src/locales/en.ts +173 -0
  267. package/src/locales/hu.ts +173 -0
  268. package/src/locales/index.tsx +163 -0
  269. package/src/locales/pt-br.ts +173 -0
  270. package/src/locales/vi.ts +173 -0
  271. package/src/locales/zh-cn.ts +173 -0
  272. package/src/plugins/DragHandle/index.ts +375 -0
  273. package/src/plugins/DragHandle/range.ts +114 -0
  274. package/src/plugins/DragHandle/utils.ts +80 -0
  275. package/src/plugins/image-upload.ts +160 -0
  276. package/src/store/ProviderRichText.tsx +53 -0
  277. package/src/store/editableEditor.ts +15 -0
  278. package/src/store/fast-context.tsx +70 -0
  279. package/src/store/store.ts +35 -0
  280. package/src/styles/ProseMirror.scss +176 -0
  281. package/src/styles/columns.scss +23 -0
  282. package/src/styles/editor.scss +411 -0
  283. package/src/styles/global.scss +87 -0
  284. package/src/styles/index.scss +5 -0
  285. package/src/styles/mention.scss +6 -0
  286. package/src/theme/theme.ts +15 -0
  287. package/src/types.ts +271 -0
  288. package/src/utils/_event.ts +55 -0
  289. package/src/utils/color.ts +67 -0
  290. package/src/utils/columns.ts +142 -0
  291. package/src/utils/customEvents/customEvents.ts +18 -0
  292. package/src/utils/customEvents/events.constant.ts +11 -0
  293. package/src/utils/delete-node.ts +46 -0
  294. package/src/utils/dom-dataset.ts +121 -0
  295. package/src/utils/download.ts +17 -0
  296. package/src/utils/dynamicCSS.ts +192 -0
  297. package/src/utils/editor-container-size.ts +28 -0
  298. package/src/utils/file.ts +112 -0
  299. package/src/utils/getRenderContainer.ts +41 -0
  300. package/src/utils/indent.ts +99 -0
  301. package/src/utils/is-mobile.ts +57 -0
  302. package/src/utils/json.ts +18 -0
  303. package/src/utils/line-height.ts +109 -0
  304. package/src/utils/lru-cache.ts +145 -0
  305. package/src/utils/mitt.ts +114 -0
  306. package/src/utils/node.ts +92 -0
  307. package/src/utils/pdf.ts +72 -0
  308. package/src/utils/plateform.ts +49 -0
  309. package/src/utils/shortId.ts +5 -0
  310. package/src/utils/storage.ts +18 -0
  311. package/src/utils/utils.ts +71 -0
  312. package/src/vite-env.d.ts +3 -0
  313. package/lib/RichTextEditor-BwbqJLnA.cjs +0 -141
  314. package/lib/RichTextEditor-iGJ6-rbq.js +0 -8833
  315. package/lib/extension-bundle.cjs +0 -33
  316. package/lib/extension-bundle.d.cts +0 -947
  317. package/lib/extension-bundle.d.ts +0 -947
  318. package/lib/extension-bundle.js +0 -5755
  319. package/lib/index-DV-nXpU1.cjs +0 -1
  320. package/lib/index-M6H3FoBi.js +0 -1147
  321. package/lib/index.cjs +0 -1
  322. package/lib/index.d.cts +0 -513
  323. package/lib/index.d.ts +0 -513
  324. package/lib/index.js +0 -16
  325. package/lib/locale-bundle.cjs +0 -1
  326. package/lib/locale-bundle.d.cts +0 -1140
  327. package/lib/locale-bundle.d.ts +0 -1140
  328. package/lib/locale-bundle.js +0 -9
  329. package/lib/style.css +0 -1
  330. package/lib/tiptap-DkWHMWDt.js +0 -6061
  331. package/lib/tiptap-gBG-1T-V.cjs +0 -116
  332. package/lib/vendor-BJ0Yf78E.cjs +0 -8114
  333. package/lib/vendor-Cpa6z-M0.js +0 -67575
@@ -1,1140 +0,0 @@
1
- export declare const en: {
2
- 'editor.remove': string;
3
- 'editor.copy': string;
4
- 'editor.words': string;
5
- 'editor.characters': string;
6
- 'editor.default': string;
7
- 'editor.recent': string;
8
- 'editor.nofill': string;
9
- 'editor.format': string;
10
- 'editor.delete': string;
11
- 'editor.edit': string;
12
- 'editor.settings': string;
13
- 'editor.table_of_content': string;
14
- 'editor.draghandle.tooltip': string;
15
- 'editor.copyToClipboard': string;
16
- 'editor.slash': string;
17
- 'editor.slash.empty': string;
18
- 'editor.slash.format': string;
19
- 'editor.slash.insert': string;
20
- 'editor.slash.embed': string;
21
- 'editor.content': string;
22
- 'editor.fontFamily.tooltip': string;
23
- 'editor.fontFamily.default.tooltip': string;
24
- 'editor.moremark': string;
25
- 'editor.size.small.tooltip': string;
26
- 'editor.size.medium.tooltip': string;
27
- 'editor.size.large.tooltip': string;
28
- 'editor.bold.tooltip': string;
29
- 'editor.italic.tooltip': string;
30
- 'editor.underline.tooltip': string;
31
- 'editor.strike.tooltip': string;
32
- 'editor.color.tooltip': string;
33
- 'editor.color.more': string;
34
- 'editor.highlight.tooltip': string;
35
- 'editor.lineheight.tooltip': string;
36
- 'editor.heading.tooltip': string;
37
- 'editor.heading.h1.tooltip': string;
38
- 'editor.heading.h2.tooltip': string;
39
- 'editor.heading.h3.tooltip': string;
40
- 'editor.heading.h4.tooltip': string;
41
- 'editor.heading.h5.tooltip': string;
42
- 'editor.heading.h6.tooltip': string;
43
- 'editor.paragraph.tooltip': string;
44
- 'editor.textalign.tooltip': string;
45
- 'editor.textalign.left.tooltip': string;
46
- 'editor.textalign.center.tooltip': string;
47
- 'editor.textalign.right.tooltip': string;
48
- 'editor.textalign.justify.tooltip': string;
49
- 'editor.indent': string;
50
- 'editor.indent.indent': string;
51
- 'editor.indent.outdent': string;
52
- 'editor.fontSize.tooltip': string;
53
- 'editor.fontSize.default.tooltip': string;
54
- 'editor.superscript.tooltip': string;
55
- 'editor.subscript.tooltip': string;
56
- 'editor.bulletlist.tooltip': string;
57
- 'editor.orderedlist.tooltip': string;
58
- 'editor.tasklist.tooltip': string;
59
- 'editor.indent.tooltip': string;
60
- 'editor.outdent.tooltip': string;
61
- 'editor.columns.tooltip': string;
62
- 'editor.link.tooltip': string;
63
- 'editor.link.unlink.tooltip': string;
64
- 'editor.link.open.tooltip': string;
65
- 'editor.link.edit.tooltip': string;
66
- 'editor.link.dialog.title': string;
67
- 'editor.link.dialog.link': string;
68
- 'editor.link.dialog.text': string;
69
- 'editor.link.dialog.openInNewTab': string;
70
- 'editor.link.dialog.link.placeholder': string;
71
- 'editor.link.dialog.text.placeholder': string;
72
- 'editor.link.dialog.button.apply': string;
73
- 'editor.image.tooltip': string;
74
- 'editor.image.dragger.tooltip': string;
75
- 'editor.image.float.left.tooltip': string;
76
- 'editor.image.float.none.tooltip': string;
77
- 'editor.image.float.right.tooltip': string;
78
- 'editor.image.dialog.title': string;
79
- 'editor.image.dialog.tab.url': string;
80
- 'editor.image.dialog.tab.upload': string;
81
- 'editor.image.dialog.tab.uploadCrop': string;
82
- 'editor.image.dialog.uploading': string;
83
- 'editor.link.dialog.inline': string;
84
- 'editor.image.dialog.form.link': string;
85
- 'editor.image.dialog.placeholder': string;
86
- 'editor.image.dialog.form.alt': string;
87
- 'editor.image.dialog.form.aspectRatio': string;
88
- 'editor.image.dialog.form.file': string;
89
- 'editor.image.dialog.button.apply': string;
90
- 'editor.video.tooltip': string;
91
- 'editor.video.dialog.tab.upload': string;
92
- 'editor.video.dialog.uploading': string;
93
- 'editor.video.dialog.title': string;
94
- 'editor.video.dialog.link': string;
95
- 'editor.video.dialog.placeholder': string;
96
- 'editor.video.dialog.button.apply': string;
97
- 'editor.table.tooltip': string;
98
- 'editor.table.menu.insert_table': string;
99
- 'editor.table.menu.insert_table.with_header_row': string;
100
- 'editor.table.menu.add_column_before': string;
101
- 'editor.table.menu.add_column_after': string;
102
- 'editor.table.menu.delete_column': string;
103
- 'editor.table.menu.add_row_before': string;
104
- 'editor.table.menu.add_row_after': string;
105
- 'editor.table.menu.delete_row': string;
106
- 'editor.table.menu.merge_or_split_cells': string;
107
- 'editor.table.menu.delete_table': string;
108
- 'editor.blockquote.tooltip': string;
109
- 'editor.horizontalrule.tooltip': string;
110
- 'editor.code.tooltip': string;
111
- 'editor.codeblock.tooltip': string;
112
- 'editor.clear.tooltip': string;
113
- 'editor.undo.tooltip': string;
114
- 'editor.redo.tooltip': string;
115
- 'editor.fullscreen.tooltip.fullscreen': string;
116
- 'editor.fullscreen.tooltip.exit': string;
117
- 'editor.imageUpload.cancel': string;
118
- 'editor.imageUpload.crop': string;
119
- 'editor.imageUpload.fileTypeNotSupported': string;
120
- 'editor.imageUpload.fileSizeTooBig': string;
121
- 'editor.table.menu.insertColumnBefore': string;
122
- 'editor.table.menu.insertColumnAfter': string;
123
- 'editor.table.menu.deleteColumn': string;
124
- 'editor.table.menu.insertRowAbove': string;
125
- 'editor.table.menu.insertRowBelow': string;
126
- 'editor.table.menu.deleteRow': string;
127
- 'editor.table.menu.mergeCells': string;
128
- 'editor.table.menu.splitCells': string;
129
- 'editor.table.menu.deleteTable': string;
130
- 'editor.table.menu.setCellsBgColor': string;
131
- 'editor.emoji.tooltip': string;
132
- 'editor.iframe.tooltip': string;
133
- 'editor.searchAndReplace.tooltip': string;
134
- 'editor.search.dialog.text': string;
135
- 'editor.replace.dialog.text': string;
136
- 'editor.replaceAll.dialog.text': string;
137
- 'editor.previous.dialog.text': string;
138
- 'editor.next.dialog.text': string;
139
- no_result_found: string;
140
- 'Smileys & People': string;
141
- 'Animals & Nature': string;
142
- 'Food & Drink': string;
143
- Activity: string;
144
- 'Travel & Places': string;
145
- Object: string;
146
- Symbol: string;
147
- Flags: string;
148
- 'Frequently used': string;
149
- 'editor.formula.dialog.text': string;
150
- 'editor.katex.tooltip': string;
151
- 'editor.exportPdf.tooltip': string;
152
- 'editor.exportWord.tooltip': string;
153
- 'editor.importWord.tooltip': string;
154
- 'editor.importWord.limitSize': string;
155
- 'editor.importWord.converting': string;
156
- 'editor.importWord.convertError': string;
157
- 'editor.importWord.importError': string;
158
- 'editor.textDirection.tooltip': string;
159
- 'editor.textDirection.auto.tooltip': string;
160
- 'editor.textDirection.ltr.tooltip': string;
161
- 'editor.textDirection.rtl.tooltip': string;
162
- 'editor.attachment.tooltip': string;
163
- 'editor.attachment.uploading': string;
164
- 'editor.attachment.please_upload': string;
165
- 'editor.imageGif.tooltip': string;
166
- 'editor.replace.caseSensitive': string;
167
- 'editor.mermaid.tooltip': string;
168
- 'editor.twitter.tooltip': string;
169
- 'editor.tooltip.flipX': string;
170
- 'editor.tooltip.flipY': string;
171
- };
172
-
173
- export declare const hu_HU: {
174
- 'editor.remove': string;
175
- 'editor.copy': string;
176
- 'editor.words': string;
177
- 'editor.characters': string;
178
- 'editor.default': string;
179
- 'editor.recent': string;
180
- 'editor.nofill': string;
181
- 'editor.format': string;
182
- 'editor.delete': string;
183
- 'editor.edit': string;
184
- 'editor.settings': string;
185
- 'editor.table_of_content': string;
186
- 'editor.draghandle.tooltip': string;
187
- 'editor.copyToClipboard': string;
188
- 'editor.slash': string;
189
- 'editor.slash.empty': string;
190
- 'editor.slash.format': string;
191
- 'editor.slash.insert': string;
192
- 'editor.slash.embed': string;
193
- 'editor.content': string;
194
- 'editor.fontFamily.tooltip': string;
195
- 'editor.fontFamily.default.tooltip': string;
196
- 'editor.moremark': string;
197
- 'editor.size.small.tooltip': string;
198
- 'editor.size.medium.tooltip': string;
199
- 'editor.size.large.tooltip': string;
200
- 'editor.bold.tooltip': string;
201
- 'editor.italic.tooltip': string;
202
- 'editor.underline.tooltip': string;
203
- 'editor.strike.tooltip': string;
204
- 'editor.color.tooltip': string;
205
- 'editor.color.more': string;
206
- 'editor.highlight.tooltip': string;
207
- 'editor.lineheight.tooltip': string;
208
- 'editor.heading.tooltip': string;
209
- 'editor.heading.h1.tooltip': string;
210
- 'editor.heading.h2.tooltip': string;
211
- 'editor.heading.h3.tooltip': string;
212
- 'editor.heading.h4.tooltip': string;
213
- 'editor.heading.h5.tooltip': string;
214
- 'editor.heading.h6.tooltip': string;
215
- 'editor.paragraph.tooltip': string;
216
- 'editor.textalign.tooltip': string;
217
- 'editor.textalign.left.tooltip': string;
218
- 'editor.textalign.center.tooltip': string;
219
- 'editor.textalign.right.tooltip': string;
220
- 'editor.textalign.justify.tooltip': string;
221
- 'editor.indent': string;
222
- 'editor.indent.indent': string;
223
- 'editor.indent.outdent': string;
224
- 'editor.fontSize.tooltip': string;
225
- 'editor.fontSize.default.tooltip': string;
226
- 'editor.superscript.tooltip': string;
227
- 'editor.subscript.tooltip': string;
228
- 'editor.bulletlist.tooltip': string;
229
- 'editor.orderedlist.tooltip': string;
230
- 'editor.tasklist.tooltip': string;
231
- 'editor.indent.tooltip': string;
232
- 'editor.outdent.tooltip': string;
233
- 'editor.columns.tooltip': string;
234
- 'editor.link.tooltip': string;
235
- 'editor.link.unlink.tooltip': string;
236
- 'editor.link.open.tooltip': string;
237
- 'editor.link.edit.tooltip': string;
238
- 'editor.link.dialog.title': string;
239
- 'editor.link.dialog.link': string;
240
- 'editor.link.dialog.text': string;
241
- 'editor.link.dialog.openInNewTab': string;
242
- 'editor.link.dialog.link.placeholder': string;
243
- 'editor.link.dialog.text.placeholder': string;
244
- 'editor.link.dialog.button.apply': string;
245
- 'editor.image.tooltip': string;
246
- 'editor.image.dragger.tooltip': string;
247
- 'editor.image.float.left.tooltip': string;
248
- 'editor.image.float.none.tooltip': string;
249
- 'editor.image.float.right.tooltip': string;
250
- 'editor.image.dialog.title': string;
251
- 'editor.image.dialog.tab.url': string;
252
- 'editor.image.dialog.tab.upload': string;
253
- 'editor.image.dialog.tab.uploadCrop': string;
254
- 'editor.image.dialog.uploading': string;
255
- 'editor.link.dialog.inline': string;
256
- 'editor.image.dialog.form.link': string;
257
- 'editor.image.dialog.placeholder': string;
258
- 'editor.image.dialog.form.alt': string;
259
- 'editor.image.dialog.form.aspectRatio': string;
260
- 'editor.image.dialog.form.file': string;
261
- 'editor.image.dialog.button.apply': string;
262
- 'editor.video.tooltip': string;
263
- 'editor.video.dialog.tab.upload': string;
264
- 'editor.video.dialog.uploading': string;
265
- 'editor.video.dialog.title': string;
266
- 'editor.video.dialog.link': string;
267
- 'editor.video.dialog.placeholder': string;
268
- 'editor.video.dialog.button.apply': string;
269
- 'editor.table.tooltip': string;
270
- 'editor.table.menu.insert_table': string;
271
- 'editor.table.menu.insert_table.with_header_row': string;
272
- 'editor.table.menu.add_column_before': string;
273
- 'editor.table.menu.add_column_after': string;
274
- 'editor.table.menu.delete_column': string;
275
- 'editor.table.menu.add_row_before': string;
276
- 'editor.table.menu.add_row_after': string;
277
- 'editor.table.menu.delete_row': string;
278
- 'editor.table.menu.merge_or_split_cells': string;
279
- 'editor.table.menu.delete_table': string;
280
- 'editor.blockquote.tooltip': string;
281
- 'editor.horizontalrule.tooltip': string;
282
- 'editor.code.tooltip': string;
283
- 'editor.codeblock.tooltip': string;
284
- 'editor.clear.tooltip': string;
285
- 'editor.undo.tooltip': string;
286
- 'editor.redo.tooltip': string;
287
- 'editor.fullscreen.tooltip.fullscreen': string;
288
- 'editor.fullscreen.tooltip.exit': string;
289
- 'editor.imageUpload.cancel': string;
290
- 'editor.imageUpload.crop': string;
291
- 'editor.imageUpload.fileTypeNotSupported': string;
292
- 'editor.imageUpload.fileSizeTooBig': string;
293
- 'editor.table.menu.insertColumnBefore': string;
294
- 'editor.table.menu.insertColumnAfter': string;
295
- 'editor.table.menu.deleteColumn': string;
296
- 'editor.table.menu.insertRowAbove': string;
297
- 'editor.table.menu.insertRowBelow': string;
298
- 'editor.table.menu.deleteRow': string;
299
- 'editor.table.menu.mergeCells': string;
300
- 'editor.table.menu.splitCells': string;
301
- 'editor.table.menu.deleteTable': string;
302
- 'editor.table.menu.setCellsBgColor': string;
303
- 'editor.emoji.tooltip': string;
304
- 'editor.iframe.tooltip': string;
305
- 'editor.searchAndReplace.tooltip': string;
306
- 'editor.search.dialog.text': string;
307
- 'editor.replace.dialog.text': string;
308
- 'editor.replaceAll.dialog.text': string;
309
- 'editor.previous.dialog.text': string;
310
- 'editor.next.dialog.text': string;
311
- no_result_found: string;
312
- 'Smileys & People': string;
313
- 'Animals & Nature': string;
314
- 'Food & Drink': string;
315
- Activity: string;
316
- 'Travel & Places': string;
317
- Object: string;
318
- Symbol: string;
319
- Flags: string;
320
- 'Frequently used': string;
321
- 'editor.formula.dialog.text': string;
322
- 'editor.katex.tooltip': string;
323
- 'editor.exportPdf.tooltip': string;
324
- 'editor.exportWord.tooltip': string;
325
- 'editor.importWord.tooltip': string;
326
- 'editor.importWord.limitSize': string;
327
- 'editor.importWord.converting': string;
328
- 'editor.importWord.convertError': string;
329
- 'editor.importWord.importError': string;
330
- 'editor.textDirection.tooltip': string;
331
- 'editor.textDirection.auto.tooltip': string;
332
- 'editor.textDirection.ltr.tooltip': string;
333
- 'editor.textDirection.rtl.tooltip': string;
334
- 'editor.attachment.tooltip': string;
335
- 'editor.attachment.uploading': string;
336
- 'editor.attachment.please_upload': string;
337
- 'editor.imageGif.tooltip': string;
338
- 'editor.replace.caseSensitive': string;
339
- 'editor.mermaid.tooltip': string;
340
- 'editor.twitter.tooltip': string;
341
- 'editor.tooltip.flipX': string;
342
- 'editor.tooltip.flipY': string;
343
- };
344
-
345
- declare type LanguageType = 'en' | 'hu_HU' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
346
-
347
- declare class Locale {
348
- private emitter;
349
- constructor();
350
- get lang(): LanguageType;
351
- set lang(lang: LanguageType);
352
- get message(): Record<LanguageType, Record<MessageKeysType, string>>;
353
- set message(message: Record<LanguageType, Record<MessageKeysType, string>>);
354
- loadLangMessage(lang: LanguageType): Record<MessageKeysType, string>;
355
- private isLangSupported;
356
- setLang(lang: LanguageType): void;
357
- registerWatchLang(hook: (lang: LanguageType) => void): {
358
- unsubscribe: () => void;
359
- };
360
- setMessage(lang: string, message: Record<MessageKeysType, string>): void;
361
- buildLocalesHandler(lang?: LanguageType): (path: MessageKeysType) => string;
362
- }
363
-
364
- export declare const locale: Locale;
365
-
366
- declare type MessageKeysType = keyof typeof en;
367
-
368
- export declare const pt_BR: {
369
- 'editor.remove': string;
370
- 'editor.copy': string;
371
- 'editor.words': string;
372
- 'editor.characters': string;
373
- 'editor.default': string;
374
- 'editor.recent': string;
375
- 'editor.nofill': string;
376
- 'editor.format': string;
377
- 'editor.delete': string;
378
- 'editor.edit': string;
379
- 'editor.settings': string;
380
- 'editor.table_of_content': string;
381
- 'editor.draghandle.tooltip': string;
382
- 'editor.copyToClipboard': string;
383
- 'editor.slash': string;
384
- 'editor.slash.empty': string;
385
- 'editor.slash.format': string;
386
- 'editor.slash.insert': string;
387
- 'editor.slash.embed': string;
388
- 'editor.content': string;
389
- 'editor.fontFamily.tooltip': string;
390
- 'editor.fontFamily.default.tooltip': string;
391
- 'editor.moremark': string;
392
- 'editor.size.small.tooltip': string;
393
- 'editor.size.medium.tooltip': string;
394
- 'editor.size.large.tooltip': string;
395
- 'editor.bold.tooltip': string;
396
- 'editor.italic.tooltip': string;
397
- 'editor.underline.tooltip': string;
398
- 'editor.strike.tooltip': string;
399
- 'editor.color.tooltip': string;
400
- 'editor.color.more': string;
401
- 'editor.highlight.tooltip': string;
402
- 'editor.lineheight.tooltip': string;
403
- 'editor.heading.tooltip': string;
404
- 'editor.heading.h1.tooltip': string;
405
- 'editor.heading.h2.tooltip': string;
406
- 'editor.heading.h3.tooltip': string;
407
- 'editor.heading.h4.tooltip': string;
408
- 'editor.heading.h5.tooltip': string;
409
- 'editor.heading.h6.tooltip': string;
410
- 'editor.paragraph.tooltip': string;
411
- 'editor.textalign.tooltip': string;
412
- 'editor.textalign.left.tooltip': string;
413
- 'editor.textalign.center.tooltip': string;
414
- 'editor.textalign.right.tooltip': string;
415
- 'editor.textalign.justify.tooltip': string;
416
- 'editor.indent': string;
417
- 'editor.indent.indent': string;
418
- 'editor.indent.outdent': string;
419
- 'editor.fontSize.tooltip': string;
420
- 'editor.fontSize.default.tooltip': string;
421
- 'editor.superscript.tooltip': string;
422
- 'editor.subscript.tooltip': string;
423
- 'editor.bulletlist.tooltip': string;
424
- 'editor.orderedlist.tooltip': string;
425
- 'editor.tasklist.tooltip': string;
426
- 'editor.indent.tooltip': string;
427
- 'editor.outdent.tooltip': string;
428
- 'editor.columns.tooltip': string;
429
- 'editor.link.tooltip': string;
430
- 'editor.link.unlink.tooltip': string;
431
- 'editor.link.open.tooltip': string;
432
- 'editor.link.edit.tooltip': string;
433
- 'editor.link.dialog.title': string;
434
- 'editor.link.dialog.link': string;
435
- 'editor.link.dialog.text': string;
436
- 'editor.link.dialog.openInNewTab': string;
437
- 'editor.link.dialog.link.placeholder': string;
438
- 'editor.link.dialog.text.placeholder': string;
439
- 'editor.link.dialog.button.apply': string;
440
- 'editor.image.tooltip': string;
441
- 'editor.image.dragger.tooltip': string;
442
- 'editor.image.float.left.tooltip': string;
443
- 'editor.image.float.none.tooltip': string;
444
- 'editor.image.float.right.tooltip': string;
445
- 'editor.image.dialog.title': string;
446
- 'editor.image.dialog.tab.url': string;
447
- 'editor.image.dialog.tab.upload': string;
448
- 'editor.link.dialog.inline': string;
449
- 'editor.image.dialog.tab.uploadCrop': string;
450
- 'editor.image.dialog.uploading': string;
451
- 'editor.image.dialog.form.link': string;
452
- 'editor.image.dialog.placeholder': string;
453
- 'editor.image.dialog.form.alt': string;
454
- 'editor.image.dialog.form.aspectRatio': string;
455
- 'editor.image.dialog.form.file': string;
456
- 'editor.image.dialog.button.apply': string;
457
- 'editor.video.tooltip': string;
458
- 'editor.video.dialog.tab.upload': string;
459
- 'editor.video.dialog.uploading': string;
460
- 'editor.video.dialog.title': string;
461
- 'editor.video.dialog.link': string;
462
- 'editor.video.dialog.placeholder': string;
463
- 'editor.video.dialog.button.apply': string;
464
- 'editor.table.tooltip': string;
465
- 'editor.table.menu.insert_table': string;
466
- 'editor.table.menu.insert_table.with_header_row': string;
467
- 'editor.table.menu.add_column_before': string;
468
- 'editor.table.menu.add_column_after': string;
469
- 'editor.table.menu.delete_column': string;
470
- 'editor.table.menu.add_row_before': string;
471
- 'editor.table.menu.add_row_after': string;
472
- 'editor.table.menu.delete_row': string;
473
- 'editor.table.menu.merge_or_split_cells': string;
474
- 'editor.table.menu.delete_table': string;
475
- 'editor.blockquote.tooltip': string;
476
- 'editor.horizontalrule.tooltip': string;
477
- 'editor.code.tooltip': string;
478
- 'editor.codeblock.tooltip': string;
479
- 'editor.clear.tooltip': string;
480
- 'editor.undo.tooltip': string;
481
- 'editor.redo.tooltip': string;
482
- 'editor.fullscreen.tooltip.fullscreen': string;
483
- 'editor.fullscreen.tooltip.exit': string;
484
- 'editor.imageUpload.cancel': string;
485
- 'editor.imageUpload.crop': string;
486
- 'editor.imageUpload.fileTypeNotSupported': string;
487
- 'editor.imageUpload.fileSizeTooBig': string;
488
- 'editor.table.menu.insertColumnBefore': string;
489
- 'editor.table.menu.insertColumnAfter': string;
490
- 'editor.table.menu.deleteColumn': string;
491
- 'editor.table.menu.insertRowAbove': string;
492
- 'editor.table.menu.insertRowBelow': string;
493
- 'editor.table.menu.deleteRow': string;
494
- 'editor.table.menu.mergeCells': string;
495
- 'editor.table.menu.splitCells': string;
496
- 'editor.table.menu.deleteTable': string;
497
- 'editor.table.menu.setCellsBgColor': string;
498
- 'editor.emoji.tooltip': string;
499
- 'editor.iframe.tooltip': string;
500
- 'editor.searchAndReplace.tooltip': string;
501
- 'editor.search.dialog.text': string;
502
- 'editor.replace.dialog.text': string;
503
- 'editor.replaceAll.dialog.text': string;
504
- 'editor.previous.dialog.text': string;
505
- 'editor.next.dialog.text': string;
506
- no_result_found: string;
507
- 'Smileys & People': string;
508
- 'Animals & Nature': string;
509
- 'Food & Drink': string;
510
- Activity: string;
511
- 'Travel & Places': string;
512
- Object: string;
513
- Symbol: string;
514
- Flags: string;
515
- 'Frequently used': string;
516
- 'editor.formula.dialog.text': string;
517
- 'editor.katex.tooltip': string;
518
- 'editor.exportPdf.tooltip': string;
519
- 'editor.exportWord.tooltip': string;
520
- 'editor.importWord.tooltip': string;
521
- 'editor.importWord.limitSize': string;
522
- 'editor.importWord.converting': string;
523
- 'editor.importWord.convertError': string;
524
- 'editor.importWord.importError': string;
525
- 'editor.textDirection.tooltip': string;
526
- 'editor.textDirection.auto.tooltip': string;
527
- 'editor.textDirection.ltr.tooltip': string;
528
- 'editor.textDirection.rtl.tooltip': string;
529
- 'editor.attachment.tooltip': string;
530
- 'editor.attachment.uploading': string;
531
- 'editor.attachment.please_upload': string;
532
- 'editor.imageGif.tooltip': string;
533
- 'editor.replace.caseSensitive': string;
534
- 'editor.mermaid.tooltip': string;
535
- 'editor.twitter.tooltip': string;
536
- 'editor.tooltip.flipX': string;
537
- 'editor.tooltip.flipY': string;
538
- };
539
-
540
- export declare const vi: {
541
- 'editor.remove': string;
542
- 'editor.copy': string;
543
- 'editor.words': string;
544
- 'editor.characters': string;
545
- 'editor.default': string;
546
- 'editor.recent': string;
547
- 'editor.nofill': string;
548
- 'editor.format': string;
549
- 'editor.delete': string;
550
- 'editor.edit': string;
551
- 'editor.settings': string;
552
- 'editor.table_of_content': string;
553
- 'editor.draghandle.tooltip': string;
554
- 'editor.copyToClipboard': string;
555
- 'editor.slash': string;
556
- 'editor.slash.empty': string;
557
- 'editor.slash.format': string;
558
- 'editor.slash.insert': string;
559
- 'editor.slash.embed': string;
560
- 'editor.content': string;
561
- 'editor.moremark': string;
562
- 'editor.size.small.tooltip': string;
563
- 'editor.fontFamily.tooltip': string;
564
- 'editor.fontFamily.default.tooltip': string;
565
- 'editor.size.medium.tooltip': string;
566
- 'editor.size.large.tooltip': string;
567
- 'editor.bold.tooltip': string;
568
- 'editor.italic.tooltip': string;
569
- 'editor.underline.tooltip': string;
570
- 'editor.strike.tooltip': string;
571
- 'editor.color.tooltip': string;
572
- 'editor.color.more': string;
573
- 'editor.highlight.tooltip': string;
574
- 'editor.lineheight.tooltip': string;
575
- 'editor.heading.tooltip': string;
576
- 'editor.heading.h1.tooltip': string;
577
- 'editor.heading.h2.tooltip': string;
578
- 'editor.heading.h3.tooltip': string;
579
- 'editor.heading.h4.tooltip': string;
580
- 'editor.heading.h5.tooltip': string;
581
- 'editor.heading.h6.tooltip': string;
582
- 'editor.paragraph.tooltip': string;
583
- 'editor.textalign.tooltip': string;
584
- 'editor.textalign.left.tooltip': string;
585
- 'editor.textalign.center.tooltip': string;
586
- 'editor.textalign.right.tooltip': string;
587
- 'editor.textalign.justify.tooltip': string;
588
- 'editor.indent': string;
589
- 'editor.indent.indent': string;
590
- 'editor.indent.outdent': string;
591
- 'editor.fontSize.tooltip': string;
592
- 'editor.fontSize.default.tooltip': string;
593
- 'editor.superscript.tooltip': string;
594
- 'editor.subscript.tooltip': string;
595
- 'editor.bulletlist.tooltip': string;
596
- 'editor.orderedlist.tooltip': string;
597
- 'editor.tasklist.tooltip': string;
598
- 'editor.indent.tooltip': string;
599
- 'editor.outdent.tooltip': string;
600
- 'editor.columns.tooltip': string;
601
- 'editor.link.tooltip': string;
602
- 'editor.link.unlink.tooltip': string;
603
- 'editor.link.open.tooltip': string;
604
- 'editor.link.edit.tooltip': string;
605
- 'editor.link.dialog.title': string;
606
- 'editor.link.dialog.link': string;
607
- 'editor.link.dialog.text': string;
608
- 'editor.link.dialog.openInNewTab': string;
609
- 'editor.link.dialog.link.placeholder': string;
610
- 'editor.link.dialog.text.placeholder': string;
611
- 'editor.link.dialog.button.apply': string;
612
- 'editor.image.tooltip': string;
613
- 'editor.image.dragger.tooltip': string;
614
- 'editor.image.float.left.tooltip': string;
615
- 'editor.image.float.none.tooltip': string;
616
- 'editor.image.float.right.tooltip': string;
617
- 'editor.image.dialog.title': string;
618
- 'editor.image.dialog.tab.url': string;
619
- 'editor.image.dialog.tab.upload': string;
620
- 'editor.link.dialog.inline': string;
621
- 'editor.image.dialog.tab.uploadCrop': string;
622
- 'editor.image.dialog.uploading': string;
623
- 'editor.image.dialog.form.link': string;
624
- 'editor.image.dialog.placeholder': string;
625
- 'editor.image.dialog.form.alt': string;
626
- 'editor.image.dialog.form.aspectRatio': string;
627
- 'editor.image.dialog.form.file': string;
628
- 'editor.image.dialog.button.apply': string;
629
- 'editor.video.tooltip': string;
630
- 'editor.video.dialog.tab.upload': string;
631
- 'editor.video.dialog.uploading': string;
632
- 'editor.video.dialog.title': string;
633
- 'editor.video.dialog.link': string;
634
- 'editor.video.dialog.placeholder': string;
635
- 'editor.video.dialog.button.apply': string;
636
- 'editor.table.tooltip': string;
637
- 'editor.table.menu.insert_table': string;
638
- 'editor.table.menu.insert_table.with_header_row': string;
639
- 'editor.table.menu.add_column_before': string;
640
- 'editor.table.menu.add_column_after': string;
641
- 'editor.table.menu.delete_column': string;
642
- 'editor.table.menu.add_row_before': string;
643
- 'editor.table.menu.add_row_after': string;
644
- 'editor.table.menu.delete_row': string;
645
- 'editor.table.menu.merge_or_split_cells': string;
646
- 'editor.table.menu.delete_table': string;
647
- 'editor.blockquote.tooltip': string;
648
- 'editor.horizontalrule.tooltip': string;
649
- 'editor.code.tooltip': string;
650
- 'editor.codeblock.tooltip': string;
651
- 'editor.clear.tooltip': string;
652
- 'editor.undo.tooltip': string;
653
- 'editor.redo.tooltip': string;
654
- 'editor.fullscreen.tooltip.fullscreen': string;
655
- 'editor.fullscreen.tooltip.exit': string;
656
- 'editor.imageUpload.cancel': string;
657
- 'editor.imageUpload.crop': string;
658
- 'editor.imageUpload.fileTypeNotSupported': string;
659
- 'editor.imageUpload.fileSizeTooBig': string;
660
- 'editor.table.menu.insertColumnBefore': string;
661
- 'editor.table.menu.insertColumnAfter': string;
662
- 'editor.table.menu.deleteColumn': string;
663
- 'editor.table.menu.insertRowAbove': string;
664
- 'editor.table.menu.insertRowBelow': string;
665
- 'editor.table.menu.deleteRow': string;
666
- 'editor.table.menu.mergeCells': string;
667
- 'editor.table.menu.splitCells': string;
668
- 'editor.table.menu.deleteTable': string;
669
- 'editor.table.menu.setCellsBgColor': string;
670
- 'editor.emoji.tooltip': string;
671
- 'editor.iframe.tooltip': string;
672
- 'editor.searchAndReplace.tooltip': string;
673
- 'editor.search.dialog.text': string;
674
- 'editor.replace.dialog.text': string;
675
- 'editor.replaceAll.dialog.text': string;
676
- 'editor.previous.dialog.text': string;
677
- 'editor.next.dialog.text': string;
678
- no_result_found: string;
679
- 'Smileys & People': string;
680
- 'Animals & Nature': string;
681
- 'Food & Drink': string;
682
- Activity: string;
683
- 'Travel & Places': string;
684
- Object: string;
685
- Symbol: string;
686
- Flags: string;
687
- 'Frequently used': string;
688
- 'editor.formula.dialog.text': string;
689
- 'editor.katex.tooltip': string;
690
- 'editor.exportPdf.tooltip': string;
691
- 'editor.exportWord.tooltip': string;
692
- 'editor.importWord.tooltip': string;
693
- 'editor.importWord.limitSize': string;
694
- 'editor.importWord.converting': string;
695
- 'editor.importWord.convertError': string;
696
- 'editor.importWord.importError': string;
697
- 'editor.textDirection.tooltip': string;
698
- 'editor.textDirection.auto.tooltip': string;
699
- 'editor.textDirection.ltr.tooltip': string;
700
- 'editor.textDirection.rtl.tooltip': string;
701
- 'editor.attachment.tooltip': string;
702
- 'editor.attachment.uploading': string;
703
- 'editor.attachment.please_upload': string;
704
- 'editor.imageGif.tooltip': string;
705
- 'editor.replace.caseSensitive': string;
706
- 'editor.mermaid.tooltip': string;
707
- 'editor.twitter.tooltip': string;
708
- 'editor.tooltip.flipX': string;
709
- 'editor.tooltip.flipY': string;
710
- };
711
-
712
- export declare const zh_CN: {
713
- 'editor.remove': string;
714
- 'editor.copy': string;
715
- 'editor.words': string;
716
- 'editor.characters': string;
717
- 'editor.default': string;
718
- 'editor.recent': string;
719
- 'editor.nofill': string;
720
- 'editor.format': string;
721
- 'editor.delete': string;
722
- 'editor.edit': string;
723
- 'editor.settings': string;
724
- 'editor.table_of_content': string;
725
- 'editor.draghandle.tooltip': string;
726
- 'editor.copyToClipboard': string;
727
- 'editor.slash': string;
728
- 'editor.slash.empty': string;
729
- 'editor.slash.format': string;
730
- 'editor.slash.insert': string;
731
- 'editor.slash.embed': string;
732
- 'editor.content': string;
733
- 'editor.fontFamily.tooltip': string;
734
- 'editor.fontFamily.default.tooltip': string;
735
- 'editor.moremark': string;
736
- 'editor.size.small.tooltip': string;
737
- 'editor.size.medium.tooltip': string;
738
- 'editor.size.large.tooltip': string;
739
- 'editor.bold.tooltip': string;
740
- 'editor.italic.tooltip': string;
741
- 'editor.underline.tooltip': string;
742
- 'editor.strike.tooltip': string;
743
- 'editor.color.tooltip': string;
744
- 'editor.color.more': string;
745
- 'editor.highlight.tooltip': string;
746
- 'editor.lineheight.tooltip': string;
747
- 'editor.heading.tooltip': string;
748
- 'editor.heading.h1.tooltip': string;
749
- 'editor.heading.h2.tooltip': string;
750
- 'editor.heading.h3.tooltip': string;
751
- 'editor.heading.h4.tooltip': string;
752
- 'editor.heading.h5.tooltip': string;
753
- 'editor.heading.h6.tooltip': string;
754
- 'editor.paragraph.tooltip': string;
755
- 'editor.textalign.tooltip': string;
756
- 'editor.textalign.left.tooltip': string;
757
- 'editor.textalign.center.tooltip': string;
758
- 'editor.textalign.right.tooltip': string;
759
- 'editor.textalign.justify.tooltip': string;
760
- 'editor.indent': string;
761
- 'editor.indent.indent': string;
762
- 'editor.indent.outdent': string;
763
- 'editor.fontSize.tooltip': string;
764
- 'editor.fontSize.default.tooltip': string;
765
- 'editor.superscript.tooltip': string;
766
- 'editor.subscript.tooltip': string;
767
- 'editor.bulletlist.tooltip': string;
768
- 'editor.orderedlist.tooltip': string;
769
- 'editor.tasklist.tooltip': string;
770
- 'editor.indent.tooltip': string;
771
- 'editor.outdent.tooltip': string;
772
- 'editor.columns.tooltip': string;
773
- 'editor.link.tooltip': string;
774
- 'editor.link.unlink.tooltip': string;
775
- 'editor.link.open.tooltip': string;
776
- 'editor.link.edit.tooltip': string;
777
- 'editor.link.dialog.title': string;
778
- 'editor.link.dialog.link': string;
779
- 'editor.link.dialog.text': string;
780
- 'editor.link.dialog.openInNewTab': string;
781
- 'editor.link.dialog.link.placeholder': string;
782
- 'editor.link.dialog.text.placeholder': string;
783
- 'editor.link.dialog.button.apply': string;
784
- 'editor.image.tooltip': string;
785
- 'editor.image.dragger.tooltip': string;
786
- 'editor.image.float.left.tooltip': string;
787
- 'editor.image.float.none.tooltip': string;
788
- 'editor.image.float.right.tooltip': string;
789
- 'editor.image.dialog.title': string;
790
- 'editor.image.dialog.tab.url': string;
791
- 'editor.image.dialog.tab.upload': string;
792
- 'editor.link.dialog.inline': string;
793
- 'editor.image.dialog.uploading': string;
794
- 'editor.image.dialog.form.link': string;
795
- 'editor.image.dialog.placeholder': string;
796
- 'editor.image.dialog.form.alt': string;
797
- 'editor.image.dialog.form.aspectRatio': string;
798
- 'editor.image.dialog.form.file': string;
799
- 'editor.image.dialog.button.apply': string;
800
- 'editor.video.tooltip': string;
801
- 'editor.video.dialog.tab.upload': string;
802
- 'editor.image.dialog.tab.uploadCrop': string;
803
- 'editor.video.dialog.uploading': string;
804
- 'editor.video.dialog.title': string;
805
- 'editor.video.dialog.link': string;
806
- 'editor.video.dialog.placeholder': string;
807
- 'editor.video.dialog.button.apply': string;
808
- 'editor.table.tooltip': string;
809
- 'editor.table.menu.insert_table': string;
810
- 'editor.table.menu.insert_table.with_header_row': string;
811
- 'editor.table.menu.add_column_before': string;
812
- 'editor.table.menu.add_column_after': string;
813
- 'editor.table.menu.delete_column': string;
814
- 'editor.table.menu.add_row_before': string;
815
- 'editor.table.menu.add_row_after': string;
816
- 'editor.table.menu.delete_row': string;
817
- 'editor.table.menu.merge_or_split_cells': string;
818
- 'editor.table.menu.delete_table': string;
819
- 'editor.blockquote.tooltip': string;
820
- 'editor.horizontalrule.tooltip': string;
821
- 'editor.code.tooltip': string;
822
- 'editor.codeblock.tooltip': string;
823
- 'editor.clear.tooltip': string;
824
- 'editor.undo.tooltip': string;
825
- 'editor.redo.tooltip': string;
826
- 'editor.fullscreen.tooltip.fullscreen': string;
827
- 'editor.fullscreen.tooltip.exit': string;
828
- 'editor.imageUpload.cancel': string;
829
- 'editor.imageUpload.crop': string;
830
- 'editor.imageUpload.fileTypeNotSupported': string;
831
- 'editor.imageUpload.fileSizeTooBig': string;
832
- 'editor.table.menu.insertColumnBefore': string;
833
- 'editor.table.menu.insertColumnAfter': string;
834
- 'editor.table.menu.deleteColumn': string;
835
- 'editor.table.menu.insertRowAbove': string;
836
- 'editor.table.menu.insertRowBelow': string;
837
- 'editor.table.menu.deleteRow': string;
838
- 'editor.table.menu.mergeCells': string;
839
- 'editor.table.menu.splitCells': string;
840
- 'editor.table.menu.deleteTable': string;
841
- 'editor.table.menu.setCellsBgColor': string;
842
- 'editor.emoji.tooltip': string;
843
- 'editor.iframe.tooltip': string;
844
- 'editor.searchAndReplace.tooltip': string;
845
- 'editor.search.dialog.text': string;
846
- 'editor.replace.dialog.text': string;
847
- 'editor.replaceAll.dialog.text': string;
848
- 'editor.previous.dialog.text': string;
849
- 'editor.next.dialog.text': string;
850
- no_result_found: string;
851
- 'Smileys & People': string;
852
- 'Animals & Nature': string;
853
- 'Food & Drink': string;
854
- Activity: string;
855
- 'Travel & Places': string;
856
- Object: string;
857
- Symbol: string;
858
- Flags: string;
859
- 'Frequently used': string;
860
- 'editor.formula.dialog.text': string;
861
- 'editor.katex.tooltip': string;
862
- 'editor.exportPdf.tooltip': string;
863
- 'editor.exportWord.tooltip': string;
864
- 'editor.importWord.tooltip': string;
865
- 'editor.importWord.limitSize': string;
866
- 'editor.importWord.converting': string;
867
- 'editor.importWord.convertError': string;
868
- 'editor.importWord.importError': string;
869
- 'editor.textDirection.tooltip': string;
870
- 'editor.textDirection.auto.tooltip': string;
871
- 'editor.textDirection.ltr.tooltip': string;
872
- 'editor.textDirection.rtl.tooltip': string;
873
- 'editor.attachment.tooltip': string;
874
- 'editor.attachment.uploading': string;
875
- 'editor.attachment.please_upload': string;
876
- 'editor.imageGif.tooltip': string;
877
- 'editor.replace.caseSensitive': string;
878
- 'editor.mermaid.tooltip': string;
879
- 'editor.twitter.tooltip': string;
880
- 'editor.tooltip.flipX': string;
881
- 'editor.tooltip.flipY': string;
882
- };
883
-
884
- export { }
885
-
886
-
887
- declare module '@tiptap/core' {
888
- interface Commands<ReturnType> {
889
- video: {
890
- /**
891
- * Add an video
892
- */
893
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
894
- /**
895
- * Update an video
896
- */
897
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
898
- };
899
- }
900
- }
901
-
902
-
903
- declare module '@tiptap/core' {
904
- interface Commands<ReturnType> {
905
- fontSize: {
906
- /**
907
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
908
- * CSS font-size
909
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
910
- */
911
- setFontSize: (fontSize: string) => ReturnType;
912
- /**
913
- * Unset the font size
914
- */
915
- unsetFontSize: () => ReturnType;
916
- };
917
- }
918
- }
919
-
920
-
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- painter: {
924
- setPainter: (marks: Mark[]) => ReturnType;
925
- };
926
- }
927
- }
928
-
929
-
930
- declare module '@tiptap/core' {
931
- interface Commands<ReturnType> {
932
- indent: {
933
- /**
934
- * Set the indent attribute
935
- */
936
- indent: () => ReturnType;
937
- /**
938
- * Set the outdent attribute
939
- */
940
- outdent: () => ReturnType;
941
- };
942
- }
943
- }
944
-
945
-
946
- declare module '@tiptap/core' {
947
- interface Commands<ReturnType> {
948
- imageUpload: {
949
- /**
950
- * Add an image
951
- */
952
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
953
- /**
954
- * Update an image
955
- */
956
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
957
- /**
958
- * Set image alignment
959
- */
960
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
961
- };
962
- }
963
- }
964
-
965
-
966
- declare module '@tiptap/core' {
967
- interface Commands<ReturnType> {
968
- columns: {
969
- insertColumns: (attrs?: {
970
- cols: number;
971
- }) => ReturnType;
972
- addColBefore: () => ReturnType;
973
- addColAfter: () => ReturnType;
974
- deleteCol: () => ReturnType;
975
- };
976
- }
977
- }
978
-
979
-
980
- declare module '@tiptap/core' {
981
- interface Commands<ReturnType> {
982
- lineHeight: {
983
- setLineHeight: (lineHeight: string) => ReturnType;
984
- unsetLineHeight: () => ReturnType;
985
- };
986
- }
987
- }
988
-
989
-
990
- declare module '@tiptap/core' {
991
- interface Commands<ReturnType> {
992
- tableCellBackground: {
993
- setTableCellBackground: (color: string) => ReturnType;
994
- unsetTableCellBackground: () => ReturnType;
995
- };
996
- }
997
- }
998
-
999
-
1000
- declare module '@tiptap/core' {
1001
- interface Commands<ReturnType> {
1002
- iframe: {
1003
- /**
1004
- * Add an iframe
1005
- */
1006
- setIframe: (options: {
1007
- src: string;
1008
- service: string;
1009
- }) => ReturnType;
1010
- };
1011
- }
1012
- }
1013
-
1014
-
1015
- declare module '@tiptap/core' {
1016
- interface Commands<ReturnType> {
1017
- search: {
1018
- setSearchTerm: (searchTerm: string) => ReturnType;
1019
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1020
- replace: () => ReturnType;
1021
- replaceAll: () => ReturnType;
1022
- goToPrevSearchResult: () => void;
1023
- goToNextSearchResult: () => void;
1024
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1025
- };
1026
- }
1027
- }
1028
-
1029
-
1030
- declare module '@tiptap/core' {
1031
- interface Commands<ReturnType> {
1032
- tableOfContents: {
1033
- setTableOfContents: () => ReturnType;
1034
- removeTableOfContents: () => ReturnType;
1035
- };
1036
- }
1037
- }
1038
-
1039
-
1040
- declare module '@tiptap/core' {
1041
- interface Commands<ReturnType> {
1042
- emoji: {
1043
- setEmoji: (emoji: {
1044
- name: string;
1045
- emoji: string;
1046
- }) => ReturnType;
1047
- };
1048
- }
1049
- }
1050
-
1051
-
1052
- declare module '@tiptap/core' {
1053
- interface Commands<ReturnType> {
1054
- exportWord: {
1055
- exportToWord: () => ReturnType;
1056
- };
1057
- }
1058
- }
1059
-
1060
-
1061
- declare module '@tiptap/core' {
1062
- interface Commands<ReturnType> {
1063
- excalidraw: {
1064
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1065
- };
1066
- }
1067
- }
1068
-
1069
-
1070
- declare module '@tiptap/core' {
1071
- interface Commands<ReturnType> {
1072
- katex: {
1073
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1074
- };
1075
- }
1076
- }
1077
-
1078
-
1079
- declare module '@tiptap/core' {
1080
- interface Commands<ReturnType> {
1081
- mermaid: {
1082
- setMermaid: (options: any, replace?: any) => ReturnType;
1083
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1084
- };
1085
- }
1086
- }
1087
-
1088
-
1089
- declare module '@tiptap/core' {
1090
- interface Commands<ReturnType> {
1091
- attachment: {
1092
- setAttachment: (attrs?: unknown) => ReturnType;
1093
- };
1094
- }
1095
- }
1096
-
1097
-
1098
- declare module '@tiptap/core' {
1099
- interface Commands<ReturnType> {
1100
- drawer: {
1101
- setDrawer: (options: any, replace?: any) => ReturnType;
1102
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1103
- };
1104
- }
1105
- }
1106
-
1107
-
1108
- declare module '@tiptap/core' {
1109
- interface Commands<ReturnType> {
1110
- twitter: {
1111
- /**
1112
- * Insert a tweet
1113
- * @param options The tweet attributes
1114
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1115
- */
1116
- setTweet: (options: SetTweetOptions) => ReturnType;
1117
- updateTweet: (options: SetTweetOptions) => ReturnType;
1118
- };
1119
- }
1120
- }
1121
-
1122
-
1123
- declare module '@tiptap/core' {
1124
- interface Commands<ReturnType> {
1125
- imageGifUpload: {
1126
- /**
1127
- * Add an image gif
1128
- */
1129
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1130
- /**
1131
- * Update an image gif
1132
- */
1133
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1134
- /**
1135
- * Set image alignment
1136
- */
1137
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1138
- };
1139
- }
1140
- }