vdc-editor 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +177 -0
- package/lib/index.d.ts +3 -0
- package/lib/src/components/ActionButton.vue.d.ts +90 -0
- package/lib/src/components/ActionDropdownButton.vue.d.ts +67 -0
- package/lib/src/components/ActionDropdownButtonSplit.vue.d.ts +71 -0
- package/lib/src/components/ActionMenuButton.vue.d.ts +62 -0
- package/lib/src/components/ColorPicker.vue.d.ts +51 -0
- package/lib/src/components/CoreEditor.vue.d.ts +162 -0
- package/lib/src/components/SelectContextMenu.vue.d.ts +28 -0
- package/lib/src/components/SuperTextView.vue.d.ts +2 -0
- package/lib/src/components/Toolbar.vue.d.ts +31 -0
- package/lib/src/components/icons/Icon.vue.d.ts +20 -0
- package/lib/src/components/icons/icons.d.ts +106 -0
- package/lib/src/components/icons/index.d.ts +4 -0
- package/lib/src/components/icons/setupIcon.d.ts +1 -0
- package/lib/src/components/menus/BasicBubble.d.ts +59 -0
- package/lib/src/components/menus/ColumnsBubbleMenu.vue.d.ts +31 -0
- package/lib/src/components/menus/LinkBubbleMenu.vue.d.ts +31 -0
- package/lib/src/components/menus/TableBubbleMenu.vue.d.ts +24 -0
- package/lib/src/components/ui/accordion/index.d.ts +4 -0
- package/lib/src/components/ui/alert/index.d.ts +9 -0
- package/lib/src/components/ui/badge/Badge.vue.d.ts +29 -0
- package/lib/src/components/ui/badge/index.d.ts +7 -0
- package/lib/src/components/ui/button/Button.vue.d.ts +43 -0
- package/lib/src/components/ui/button/index.d.ts +8 -0
- package/lib/src/components/ui/checkbox/Checkbox.vue.d.ts +31 -0
- package/lib/src/components/ui/checkbox/index.d.ts +1 -0
- package/lib/src/components/ui/context-menu/ContextMenu.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +33 -0
- package/lib/src/components/ui/context-menu/ContextMenuContent.vue.d.ts +39 -0
- package/lib/src/components/ui/context-menu/ContextMenuGroup.vue.d.ts +22 -0
- package/lib/src/components/ui/context-menu/ContextMenuItem.vue.d.ts +33 -0
- package/lib/src/components/ui/context-menu/ContextMenuLabel.vue.d.ts +29 -0
- package/lib/src/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +31 -0
- package/lib/src/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +18 -0
- package/lib/src/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuSub.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +43 -0
- package/lib/src/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +29 -0
- package/lib/src/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/context-menu/index.d.ts +14 -0
- package/lib/src/components/ui/dialog/Dialog.vue.d.ts +26 -0
- package/lib/src/components/ui/dialog/DialogClose.vue.d.ts +22 -0
- package/lib/src/components/ui/dialog/DialogContent.vue.d.ts +41 -0
- package/lib/src/components/ui/dialog/DialogDescription.vue.d.ts +27 -0
- package/lib/src/components/ui/dialog/DialogFooter.vue.d.ts +26 -0
- package/lib/src/components/ui/dialog/DialogHeader.vue.d.ts +26 -0
- package/lib/src/components/ui/dialog/DialogScrollContent.vue.d.ts +41 -0
- package/lib/src/components/ui/dialog/DialogTitle.vue.d.ts +27 -0
- package/lib/src/components/ui/dialog/DialogTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/dialog/index.d.ts +9 -0
- package/lib/src/components/ui/drawer/index.d.ts +8 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +33 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +53 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +22 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +29 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +29 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +31 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +18 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +43 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +27 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/dropdown-menu/index.d.ts +15 -0
- package/lib/src/components/ui/input/Input.vue.d.ts +25 -0
- package/lib/src/components/ui/input/index.d.ts +1 -0
- package/lib/src/components/ui/label/Label.vue.d.ts +27 -0
- package/lib/src/components/ui/label/index.d.ts +1 -0
- package/lib/src/components/ui/menubar/index.d.ts +15 -0
- package/lib/src/components/ui/popover/Popover.vue.d.ts +26 -0
- package/lib/src/components/ui/popover/PopoverContent.vue.d.ts +58 -0
- package/lib/src/components/ui/popover/PopoverTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/popover/index.d.ts +4 -0
- package/lib/src/components/ui/resizable/ResizableHandle.vue.d.ts +24 -0
- package/lib/src/components/ui/resizable/ResizablePanelGroup.vue.d.ts +31 -0
- package/lib/src/components/ui/resizable/index.d.ts +3 -0
- package/lib/src/components/ui/scroll-area/ScrollArea.vue.d.ts +27 -0
- package/lib/src/components/ui/scroll-area/ScrollBar.vue.d.ts +32 -0
- package/lib/src/components/ui/scroll-area/index.d.ts +2 -0
- package/lib/src/components/ui/select/Select.vue.d.ts +28 -0
- package/lib/src/components/ui/select/SelectContent.vue.d.ts +49 -0
- package/lib/src/components/ui/select/SelectGroup.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectItem.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectItemText.vue.d.ts +22 -0
- package/lib/src/components/ui/select/SelectLabel.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectScrollDownButton.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectScrollUpButton.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectSeparator.vue.d.ts +18 -0
- package/lib/src/components/ui/select/SelectTrigger.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectValue.vue.d.ts +22 -0
- package/lib/src/components/ui/select/index.d.ts +11 -0
- package/lib/src/components/ui/separator/Separator.vue.d.ts +18 -0
- package/lib/src/components/ui/separator/index.d.ts +1 -0
- package/lib/src/components/ui/sheet/index.d.ts +14 -0
- package/lib/src/components/ui/slider/index.d.ts +1 -0
- package/lib/src/components/ui/switch/index.d.ts +1 -0
- package/lib/src/components/ui/tabs/Tabs.vue.d.ts +26 -0
- package/lib/src/components/ui/tabs/TabsContent.vue.d.ts +27 -0
- package/lib/src/components/ui/tabs/TabsList.vue.d.ts +27 -0
- package/lib/src/components/ui/tabs/TabsTrigger.vue.d.ts +27 -0
- package/lib/src/components/ui/tabs/index.d.ts +4 -0
- package/lib/src/components/ui/textarea/Textarea.vue.d.ts +25 -0
- package/lib/src/components/ui/textarea/index.d.ts +1 -0
- package/lib/src/components/ui/toast/index.d.ts +22 -0
- package/lib/src/components/ui/toast/use-toast.d.ts +349 -0
- package/lib/src/components/ui/toggle/Toggle.vue.d.ts +56 -0
- package/lib/src/components/ui/toggle/index.d.ts +8 -0
- package/lib/src/components/ui/toggle-group/index.d.ts +2 -0
- package/lib/src/components/ui/tooltip/Tooltip.vue.d.ts +26 -0
- package/lib/src/components/ui/tooltip/TooltipContent.vue.d.ts +47 -0
- package/lib/src/components/ui/tooltip/TooltipProvider.vue.d.ts +22 -0
- package/lib/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/tooltip/index.d.ts +4 -0
- package/lib/src/constants/index.d.ts +55 -0
- package/lib/src/extensions/Ai/AI.d.ts +16 -0
- package/lib/src/extensions/Ai/components/AIButton.vue.d.ts +74 -0
- package/lib/src/extensions/Ai/index.d.ts +1 -0
- package/lib/src/extensions/AttributesSetup/AttributesSetup.d.ts +3 -0
- package/lib/src/extensions/AttributesSetup/index.d.ts +1 -0
- package/lib/src/extensions/BaseKit.d.ts +118 -0
- package/lib/src/extensions/Blockquote/Blockquote.d.ts +6 -0
- package/lib/src/extensions/Blockquote/index.d.ts +1 -0
- package/lib/src/extensions/Bold/Bold.d.ts +6 -0
- package/lib/src/extensions/Bold/index.d.ts +1 -0
- package/lib/src/extensions/BulletList/BulletList.d.ts +6 -0
- package/lib/src/extensions/BulletList/components/BulletListMenuButton.vue.d.ts +35 -0
- package/lib/src/extensions/BulletList/index.d.ts +1 -0
- package/lib/src/extensions/Clear/Clear.d.ts +6 -0
- package/lib/src/extensions/Clear/index.d.ts +1 -0
- package/lib/src/extensions/Code/Code.d.ts +6 -0
- package/lib/src/extensions/Code/index.d.ts +1 -0
- package/lib/src/extensions/CodeBlock/CodeBlock.d.ts +6 -0
- package/lib/src/extensions/CodeBlock/components/CodeBlockView.vue.d.ts +68 -0
- package/lib/src/extensions/CodeBlock/index.d.ts +1 -0
- package/lib/src/extensions/Color/Color.d.ts +6 -0
- package/lib/src/extensions/Color/components/ColorActionButton.vue.d.ts +48 -0
- package/lib/src/extensions/Color/index.d.ts +1 -0
- package/lib/src/extensions/Document/Document.d.ts +2 -0
- package/lib/src/extensions/Document/index.d.ts +1 -0
- package/lib/src/extensions/FindAndReplace/FindAndReplace.d.ts +58 -0
- package/lib/src/extensions/FindAndReplace/index.d.ts +1 -0
- package/lib/src/extensions/FontFamily/FontFamily.d.ts +25 -0
- package/lib/src/extensions/FontFamily/components/FontFamilyMenuButton.vue.d.ts +65 -0
- package/lib/src/extensions/FontFamily/index.d.ts +1 -0
- package/lib/src/extensions/FontSize/FontSize.d.ts +32 -0
- package/lib/src/extensions/FontSize/components/FontSizeMenuButton.vue.d.ts +64 -0
- package/lib/src/extensions/FontSize/index.d.ts +1 -0
- package/lib/src/extensions/FormatPainter/FormatPainter.d.ts +24 -0
- package/lib/src/extensions/FormatPainter/index.d.ts +1 -0
- package/lib/src/extensions/Fullscreen/Fullscreen.d.ts +6 -0
- package/lib/src/extensions/Fullscreen/index.d.ts +1 -0
- package/lib/src/extensions/Heading/Heading.d.ts +6 -0
- package/lib/src/extensions/Heading/components/HeadingButton.vue.d.ts +65 -0
- package/lib/src/extensions/Heading/index.d.ts +1 -0
- package/lib/src/extensions/Highlight/Highlight.d.ts +6 -0
- package/lib/src/extensions/Highlight/components/HighlightActionButton.vue.d.ts +49 -0
- package/lib/src/extensions/Highlight/index.d.ts +1 -0
- package/lib/src/extensions/History/History.d.ts +6 -0
- package/lib/src/extensions/History/index.d.ts +1 -0
- package/lib/src/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
- package/lib/src/extensions/HorizontalRule/index.d.ts +1 -0
- package/lib/src/extensions/IDAttr/IDPlugin.d.ts +4 -0
- package/lib/src/extensions/IDAttr/index.d.ts +1 -0
- package/lib/src/extensions/Iframe/Iframe.d.ts +24 -0
- package/lib/src/extensions/Iframe/embed.d.ts +113 -0
- package/lib/src/extensions/Iframe/index.d.ts +1 -0
- package/lib/src/extensions/Image/Image.d.ts +29 -0
- package/lib/src/extensions/Image/components/ImageView.vue.d.ts +68 -0
- package/lib/src/extensions/Image/index.d.ts +1 -0
- package/lib/src/extensions/ImageUpload/ImageUpload.d.ts +16 -0
- package/lib/src/extensions/ImageUpload/components/ImageUploader.vue.d.ts +68 -0
- package/lib/src/extensions/ImageUpload/index.d.ts +1 -0
- package/lib/src/extensions/ImportWord/ImportWord.d.ts +28 -0
- package/lib/src/extensions/ImportWord/index.d.ts +1 -0
- package/lib/src/extensions/ImportWord/utils.d.ts +2 -0
- package/lib/src/extensions/Indent/Indent.d.ts +23 -0
- package/lib/src/extensions/Indent/index.d.ts +1 -0
- package/lib/src/extensions/Italic/Italic.d.ts +6 -0
- package/lib/src/extensions/Italic/index.d.ts +1 -0
- package/lib/src/extensions/LineHeight/LineHeight.d.ts +17 -0
- package/lib/src/extensions/LineHeight/components/LineHeightDropdown.vue.d.ts +48 -0
- package/lib/src/extensions/LineHeight/index.d.ts +1 -0
- package/lib/src/extensions/Link/Link.d.ts +6 -0
- package/lib/src/extensions/Link/components/LinkEditBlock.vue.d.ts +30 -0
- package/lib/src/extensions/Link/components/LinkEditPopover.vue.d.ts +56 -0
- package/lib/src/extensions/Link/components/LinkViewBlock.vue.d.ts +37 -0
- package/lib/src/extensions/Link/index.d.ts +1 -0
- package/lib/src/extensions/ListItem/ListItem.d.ts +3 -0
- package/lib/src/extensions/ListItem/index.d.ts +1 -0
- package/lib/src/extensions/MoreMark/MoreMark.d.ts +20 -0
- package/lib/src/extensions/MoreMark/components/ActionMoreButton.vue.d.ts +65 -0
- package/lib/src/extensions/MoreMark/index.d.ts +1 -0
- package/lib/src/extensions/MultiColumn/Column.d.ts +4 -0
- package/lib/src/extensions/MultiColumn/Columns.d.ts +22 -0
- package/lib/src/extensions/MultiColumn/index.d.ts +2 -0
- package/lib/src/extensions/OrderedList/OrderedList.d.ts +6 -0
- package/lib/src/extensions/OrderedList/components/OrderedListMenuButton.vue.d.ts +44 -0
- package/lib/src/extensions/OrderedList/index.d.ts +1 -0
- package/lib/src/extensions/Page/computed.d.ts +122 -0
- package/lib/src/extensions/Page/core.d.ts +79 -0
- package/lib/src/extensions/Page/index.d.ts +23 -0
- package/lib/src/extensions/Page/node-view.vue.d.ts +68 -0
- package/lib/src/extensions/Page/page-plugin.d.ts +7 -0
- package/lib/src/extensions/Page/split-block.d.ts +3 -0
- package/lib/src/extensions/Page/split-list-item.d.ts +7 -0
- package/lib/src/extensions/Page/types.d.ts +40 -0
- package/lib/src/extensions/Page/utils.d.ts +48 -0
- package/lib/src/extensions/Preview/Preview.d.ts +13 -0
- package/lib/src/extensions/Preview/index.d.ts +1 -0
- package/lib/src/extensions/Printer/Printer.d.ts +6 -0
- package/lib/src/extensions/Printer/index.d.ts +1 -0
- package/lib/src/extensions/Selection/Selection.d.ts +4 -0
- package/lib/src/extensions/Selection/index.d.ts +1 -0
- package/lib/src/extensions/SlashCommand/CommandsList.vue.d.ts +35 -0
- package/lib/src/extensions/SlashCommand/SlashCommand.d.ts +4 -0
- package/lib/src/extensions/SlashCommand/groups.d.ts +4 -0
- package/lib/src/extensions/SlashCommand/index.d.ts +1 -0
- package/lib/src/extensions/SlashCommand/types.d.ts +26 -0
- package/lib/src/extensions/SpellChecker/hunspell-proofreader.d.ts +16 -0
- package/lib/src/extensions/SpellChecker/i-proofreader-interface.d.ts +10 -0
- package/lib/src/extensions/SpellChecker/index.d.ts +6 -0
- package/lib/src/extensions/SpellChecker/sapling-proofreader.d.ts +13 -0
- package/lib/src/extensions/SpellChecker/spellchecker-extension.d.ts +27 -0
- package/lib/src/extensions/SpellChecker/spellchecker.d.ts +44 -0
- package/lib/src/extensions/Strike/Strike.d.ts +6 -0
- package/lib/src/extensions/Strike/index.d.ts +1 -0
- package/lib/src/extensions/Subscript/Subscript.d.ts +23 -0
- package/lib/src/extensions/Subscript/index.d.ts +1 -0
- package/lib/src/extensions/SuperText/SuperText.d.ts +11 -0
- package/lib/src/extensions/SuperText/components/SuperText.vue.d.ts +68 -0
- package/lib/src/extensions/SuperText/index.d.ts +1 -0
- package/lib/src/extensions/Table/cell-background.d.ts +19 -0
- package/lib/src/extensions/Table/components/CreateTablePopover.vue.d.ts +32 -0
- package/lib/src/extensions/Table/components/TableActionButton.vue.d.ts +53 -0
- package/lib/src/extensions/Table/index.d.ts +7 -0
- package/lib/src/extensions/Table/table.d.ts +24 -0
- package/lib/src/extensions/TaskList/TaskList.d.ts +12 -0
- package/lib/src/extensions/TaskList/index.d.ts +1 -0
- package/lib/src/extensions/TextAlign/TextAlign.d.ts +18 -0
- package/lib/src/extensions/TextAlign/components/TextAlignMenuButton.vue.d.ts +65 -0
- package/lib/src/extensions/TextAlign/index.d.ts +1 -0
- package/lib/src/extensions/TextBubble/TextBubble.d.ts +7 -0
- package/lib/src/extensions/TextBubble/components/TextDropdown.vue.d.ts +49 -0
- package/lib/src/extensions/TextBubble/index.d.ts +1 -0
- package/lib/src/extensions/TrailingNode/TrailingNode.d.ts +12 -0
- package/lib/src/extensions/TrailingNode/index.d.ts +1 -0
- package/lib/src/extensions/UnderLine/Underline.d.ts +6 -0
- package/lib/src/extensions/UnderLine/index.d.ts +1 -0
- package/lib/src/extensions/Video/Video.d.ts +55 -0
- package/lib/src/extensions/Video/index.d.ts +1 -0
- package/lib/src/extensions/VideoUpload/VideoUpload.d.ts +14 -0
- package/lib/src/extensions/VideoUpload/components/VideoUploader.vue.d.ts +68 -0
- package/lib/src/extensions/VideoUpload/index.d.ts +1 -0
- package/lib/src/extensions/index.d.ts +74 -0
- package/lib/src/hooks/index.d.ts +6 -0
- package/lib/src/hooks/useCheckSpellStore.d.ts +9 -0
- package/lib/src/hooks/useConfigTiptap.d.ts +8 -0
- package/lib/src/hooks/useContext.d.ts +21 -0
- package/lib/src/hooks/useHotkeys.d.ts +4 -0
- package/lib/src/hooks/useNodePosition.d.ts +7 -0
- package/lib/src/hooks/useStore.d.ts +160 -0
- package/lib/src/hooks/useSuperTextStore.d.ts +20 -0
- package/lib/src/i18n.d.ts +337 -0
- package/lib/src/index.d.ts +12 -0
- package/lib/src/plugins/image-upload.d.ts +12 -0
- package/lib/src/type.d.ts +145 -0
- package/lib/src/utils/content.d.ts +4 -0
- package/lib/src/utils/getRenderContainer.d.ts +4 -0
- package/lib/src/utils/indent.d.ts +15 -0
- package/lib/src/utils/is-mobile.d.ts +19 -0
- package/lib/src/utils/line-height.d.ts +7 -0
- package/lib/src/utils/loadFonts.d.ts +1 -0
- package/lib/src/utils/mitt.d.ts +24 -0
- package/lib/src/utils/node-names.d.ts +31 -0
- package/lib/src/utils/plateform.d.ts +11 -0
- package/lib/src/utils/utils.d.ts +18 -0
- package/lib/src/utils.d.ts +3 -0
- package/lib/style.css +1 -0
- package/lib/vdc-editor.mjs +61980 -0
- package/lib/vdc-editor.umd.js +197 -0
- package/lib/vite.config.d.ts +2 -0
- package/package.json +174 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { AnyExtension } from '@tiptap/core';
|
|
2
|
+
import { PageOption } from '../type';
|
|
3
|
+
import { Editor } from '@tiptap/vue-3';
|
|
4
|
+
|
|
5
|
+
export type EditorState = {
|
|
6
|
+
text: string;
|
|
7
|
+
html: string;
|
|
8
|
+
json: Object | null;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Interface representing an tiptap editor instance.
|
|
12
|
+
*/
|
|
13
|
+
interface Instance {
|
|
14
|
+
/**
|
|
15
|
+
* List of extensions
|
|
16
|
+
*
|
|
17
|
+
* @default []
|
|
18
|
+
*/
|
|
19
|
+
extensions: AnyExtension[];
|
|
20
|
+
/**
|
|
21
|
+
* Default language setting
|
|
22
|
+
*
|
|
23
|
+
* @default DEFAULT_LANG_VALUE
|
|
24
|
+
*/
|
|
25
|
+
defaultLang?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether it is in fullscreen mode
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
/** Text color */
|
|
32
|
+
color?: string;
|
|
33
|
+
/** Highlight color */
|
|
34
|
+
highlight?: string;
|
|
35
|
+
zoom?: number[];
|
|
36
|
+
editor: EditorState;
|
|
37
|
+
fontFamily: string;
|
|
38
|
+
fontSize: string;
|
|
39
|
+
viewSuperText?: boolean;
|
|
40
|
+
/** Preview visibility */
|
|
41
|
+
showPreview: boolean;
|
|
42
|
+
/** SpellCheck */
|
|
43
|
+
spellCheck: boolean;
|
|
44
|
+
/** FindAndReplace */
|
|
45
|
+
findAndReplace: boolean;
|
|
46
|
+
/** Printer */
|
|
47
|
+
printer: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare const useTiptapStore: () => {
|
|
50
|
+
state: Instance;
|
|
51
|
+
page: globalThis.Ref<{
|
|
52
|
+
defaultMargin?: {
|
|
53
|
+
left: number;
|
|
54
|
+
right: number;
|
|
55
|
+
top: number;
|
|
56
|
+
bottom: number;
|
|
57
|
+
} | undefined;
|
|
58
|
+
defaultOrientation?: string | undefined;
|
|
59
|
+
defaultBackground?: string | undefined;
|
|
60
|
+
nodesComputedOption?: {
|
|
61
|
+
types: string[];
|
|
62
|
+
nodesComputed: import('../type').NodesComputed;
|
|
63
|
+
} | undefined;
|
|
64
|
+
size?: {
|
|
65
|
+
width: number;
|
|
66
|
+
height: number;
|
|
67
|
+
label?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
margin?: {
|
|
70
|
+
right: string;
|
|
71
|
+
left: string;
|
|
72
|
+
bottom: string;
|
|
73
|
+
top: string;
|
|
74
|
+
layout?: "narrow" | "moderate" | "wide" | "custom" | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
orientation?: string | undefined;
|
|
77
|
+
background?: string | undefined;
|
|
78
|
+
header?: boolean | undefined;
|
|
79
|
+
footer?: boolean | undefined;
|
|
80
|
+
showLineNumber?: boolean | undefined;
|
|
81
|
+
showToc?: boolean | undefined;
|
|
82
|
+
pagination?: boolean | undefined;
|
|
83
|
+
zoomLevel?: number | undefined;
|
|
84
|
+
bodyHeight?: number | undefined;
|
|
85
|
+
autoWidth?: boolean | undefined;
|
|
86
|
+
preview?: {
|
|
87
|
+
enabled?: boolean | undefined;
|
|
88
|
+
laserPointer?: boolean | undefined;
|
|
89
|
+
} | undefined;
|
|
90
|
+
}, PageOption | {
|
|
91
|
+
defaultMargin?: {
|
|
92
|
+
left: number;
|
|
93
|
+
right: number;
|
|
94
|
+
top: number;
|
|
95
|
+
bottom: number;
|
|
96
|
+
} | undefined;
|
|
97
|
+
defaultOrientation?: string | undefined;
|
|
98
|
+
defaultBackground?: string | undefined;
|
|
99
|
+
nodesComputedOption?: {
|
|
100
|
+
types: string[];
|
|
101
|
+
nodesComputed: import('../type').NodesComputed;
|
|
102
|
+
} | undefined;
|
|
103
|
+
size?: {
|
|
104
|
+
width: number;
|
|
105
|
+
height: number;
|
|
106
|
+
label?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
margin?: {
|
|
109
|
+
right: string;
|
|
110
|
+
left: string;
|
|
111
|
+
bottom: string;
|
|
112
|
+
top: string;
|
|
113
|
+
layout?: "narrow" | "moderate" | "wide" | "custom" | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
orientation?: string | undefined;
|
|
116
|
+
background?: string | undefined;
|
|
117
|
+
header?: boolean | undefined;
|
|
118
|
+
footer?: boolean | undefined;
|
|
119
|
+
showLineNumber?: boolean | undefined;
|
|
120
|
+
showToc?: boolean | undefined;
|
|
121
|
+
pagination?: boolean | undefined;
|
|
122
|
+
zoomLevel?: number | undefined;
|
|
123
|
+
bodyHeight?: number | undefined;
|
|
124
|
+
autoWidth?: boolean | undefined;
|
|
125
|
+
preview?: {
|
|
126
|
+
enabled?: boolean | undefined;
|
|
127
|
+
laserPointer?: boolean | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
isFullscreen: globalThis.Ref<boolean, boolean>;
|
|
131
|
+
toggleFullscreen: () => Promise<void>;
|
|
132
|
+
updateEditorState: (e: Editor) => void;
|
|
133
|
+
setEditor: (editorInstance: Editor) => void;
|
|
134
|
+
isReady: globalThis.Ref<boolean, boolean>;
|
|
135
|
+
container: string;
|
|
136
|
+
editor: globalThis.Ref<Editor | undefined, Editor | undefined>;
|
|
137
|
+
changeZoom: (zoom: number) => void;
|
|
138
|
+
changePageOption: (_otp: PageOption) => void;
|
|
139
|
+
changeFontFamily: (font: string) => void;
|
|
140
|
+
changeFontSize: (size: string) => void;
|
|
141
|
+
toggleSuperText: () => void;
|
|
142
|
+
superTextStore: {
|
|
143
|
+
removeSuperText: (state: Pick<import('./useSuperTextStore').ModalState, "id">) => void;
|
|
144
|
+
superText: import('vue').Reactive<import('./useSuperTextStore').ModalState[]>;
|
|
145
|
+
updateSuperText: (state: import('./useSuperTextStore').ModalState) => void;
|
|
146
|
+
updatePositionSuperText: (state: Pick<import('./useSuperTextStore').ModalState, "position" | "id">) => void;
|
|
147
|
+
addMoreSuperText: (text: string, position?: DOMRect) => string;
|
|
148
|
+
addSuperText: (state: import('./useSuperTextStore').ModalState) => void;
|
|
149
|
+
onUpdatePositionEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
150
|
+
onUpdatePositionTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
151
|
+
onHoverEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
152
|
+
onHoverEventTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
153
|
+
};
|
|
154
|
+
checkSpellStore: {
|
|
155
|
+
languages: "ko" | "en";
|
|
156
|
+
update: (payload: Partial<import('./useCheckSpellStore').SpellCheckState>) => void;
|
|
157
|
+
limit: number;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ModalState = {
|
|
2
|
+
id: number | string;
|
|
3
|
+
text: string;
|
|
4
|
+
position?: {
|
|
5
|
+
top?: number | string;
|
|
6
|
+
left?: number | string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const useSuperTextStore: () => {
|
|
10
|
+
removeSuperText: (state: Pick<ModalState, "id">) => void;
|
|
11
|
+
superText: import('vue').Reactive<ModalState[]>;
|
|
12
|
+
updateSuperText: (state: ModalState) => void;
|
|
13
|
+
updatePositionSuperText: (state: Pick<ModalState, "position" | "id">) => void;
|
|
14
|
+
addMoreSuperText: (text: string, position?: DOMRect) => string;
|
|
15
|
+
addSuperText: (state: ModalState) => void;
|
|
16
|
+
onUpdatePositionEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
17
|
+
onUpdatePositionTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
18
|
+
onHoverEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
19
|
+
onHoverEventTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
declare const _default: import('vue-i18n').I18n<{
|
|
2
|
+
en: {
|
|
3
|
+
"editor.remove": string;
|
|
4
|
+
"editor.copy": string;
|
|
5
|
+
"editor.words": string;
|
|
6
|
+
"editor.characters": string;
|
|
7
|
+
"editor.default": string;
|
|
8
|
+
"editor.recent": string;
|
|
9
|
+
"editor.nofill": string;
|
|
10
|
+
"editor.format": string;
|
|
11
|
+
"editor.close": string;
|
|
12
|
+
"editor.modify": string;
|
|
13
|
+
"editor.preview.tooltip": string;
|
|
14
|
+
"editor.draghandle.tooltip": string;
|
|
15
|
+
"editor.copyToClipboard": string;
|
|
16
|
+
"editor.importWord.tooltip": string;
|
|
17
|
+
"editor.importWord.success": string;
|
|
18
|
+
"editor.importWord.fileTooLarge": string;
|
|
19
|
+
"editor.importWord.error": string;
|
|
20
|
+
"editor.slash": string;
|
|
21
|
+
"editor.slash.empty": string;
|
|
22
|
+
"editor.slash.format": string;
|
|
23
|
+
"editor.slash.insert": string;
|
|
24
|
+
"editor.slash.embed": string;
|
|
25
|
+
"editor.content": string;
|
|
26
|
+
"editor.moremark": string;
|
|
27
|
+
"editor.size.small.tooltip": string;
|
|
28
|
+
"editor.size.medium.tooltip": string;
|
|
29
|
+
"editor.size.large.tooltip": string;
|
|
30
|
+
"editor.bold.tooltip": string;
|
|
31
|
+
"editor.italic.tooltip": string;
|
|
32
|
+
"editor.underline.tooltip": string;
|
|
33
|
+
"editor.strike.tooltip": string;
|
|
34
|
+
"editor.color.tooltip": string;
|
|
35
|
+
"editor.color.more": string;
|
|
36
|
+
"editor.highlight.tooltip": string;
|
|
37
|
+
"editor.lineheight.tooltip": string;
|
|
38
|
+
"editor.heading.tooltip": string;
|
|
39
|
+
"editor.heading.h1.tooltip": string;
|
|
40
|
+
"editor.heading.h2.tooltip": string;
|
|
41
|
+
"editor.heading.h3.tooltip": string;
|
|
42
|
+
"editor.heading.h4.tooltip": string;
|
|
43
|
+
"editor.heading.h5.tooltip": string;
|
|
44
|
+
"editor.heading.h6.tooltip": string;
|
|
45
|
+
"editor.paragraph.tooltip": string;
|
|
46
|
+
"editor.textalign.tooltip": string;
|
|
47
|
+
"editor.textalign.left.tooltip": string;
|
|
48
|
+
"editor.textalign.center.tooltip": string;
|
|
49
|
+
"editor.textalign.right.tooltip": string;
|
|
50
|
+
"editor.textalign.justify.tooltip": string;
|
|
51
|
+
"editor.indent": string;
|
|
52
|
+
"editor.indent.indent": string;
|
|
53
|
+
"editor.indent.outdent": string;
|
|
54
|
+
"editor.fontFamily.tooltip": string;
|
|
55
|
+
"editor.fontFamily.default": string;
|
|
56
|
+
"editor.fontSize.tooltip": string;
|
|
57
|
+
"editor.fontSize.default.tooltip": string;
|
|
58
|
+
"editor.superscript.tooltip": string;
|
|
59
|
+
"editor.subscript.tooltip": string;
|
|
60
|
+
"editor.bulletlist.tooltip": string;
|
|
61
|
+
"editor.bulletlist.disc.tooltip": string;
|
|
62
|
+
"editor.bulletlist.circle.tooltip": string;
|
|
63
|
+
"editor.bulletlist.square.tooltip": string;
|
|
64
|
+
"editor.orderedlist.tooltip": string;
|
|
65
|
+
"editor.orderedlist.decimal.tooltip": string;
|
|
66
|
+
"editor.orderedlist.decimalLeadingZero.tooltip": string;
|
|
67
|
+
"editor.orderedlist.lowerRoman.tooltip": string;
|
|
68
|
+
"editor.orderedlist.upperRoman.tooltip": string;
|
|
69
|
+
"editor.orderedlist.lowerLatin.tooltip": string;
|
|
70
|
+
"editor.orderedlist.upperLatin.tooltip": string;
|
|
71
|
+
"editor.orderedlist.tradChineseInformal.tooltip": string;
|
|
72
|
+
"editor.orderedlist.simpChineseFormal.tooltip": string;
|
|
73
|
+
"editor.tasklist.tooltip": string;
|
|
74
|
+
"editor.indent.tooltip": string;
|
|
75
|
+
"editor.outdent.tooltip": string;
|
|
76
|
+
"editor.columns.tooltip": string;
|
|
77
|
+
"editor.link.tooltip": string;
|
|
78
|
+
"editor.link.unlink.tooltip": string;
|
|
79
|
+
"editor.link.open.tooltip": string;
|
|
80
|
+
"editor.link.edit.tooltip": string;
|
|
81
|
+
"editor.link.dialog.title": string;
|
|
82
|
+
"editor.link.dialog.link": string;
|
|
83
|
+
"editor.link.dialog.text": string;
|
|
84
|
+
"editor.link.dialog.openInNewTab": string;
|
|
85
|
+
"editor.link.dialog.link.placeholder": string;
|
|
86
|
+
"editor.link.dialog.text.placeholder": string;
|
|
87
|
+
"editor.link.dialog.button.apply": string;
|
|
88
|
+
"editor.image.tooltip": string;
|
|
89
|
+
"editor.image.menu.flipX": string;
|
|
90
|
+
"editor.image.menu.flipY": string;
|
|
91
|
+
"editor.image.menu.size": string;
|
|
92
|
+
"editor.image.menu.size.width": string;
|
|
93
|
+
"editor.image.menu.size.height": string;
|
|
94
|
+
"editor.image.dragger.tooltip": string;
|
|
95
|
+
"editor.image.float.left.tooltip": string;
|
|
96
|
+
"editor.image.float.none.tooltip": string;
|
|
97
|
+
"editor.image.float.right.tooltip": string;
|
|
98
|
+
"editor.image.dialog.title": string;
|
|
99
|
+
"editor.image.dialog.tab.url": string;
|
|
100
|
+
"editor.image.dialog.tab.upload": string;
|
|
101
|
+
"editor.image.dialog.uploading": string;
|
|
102
|
+
"editor.image.dialog.form.link": string;
|
|
103
|
+
"editor.image.dialog.placeholder": string;
|
|
104
|
+
"editor.image.dialog.form.alt": string;
|
|
105
|
+
"editor.image.dialog.form.aspectRatio": string;
|
|
106
|
+
"editor.image.dialog.form.file": string;
|
|
107
|
+
"editor.image.dialog.button.apply": string;
|
|
108
|
+
"editor.video.tooltip": string;
|
|
109
|
+
"editor.video.dialog.tab.upload": string;
|
|
110
|
+
"editor.video.dialog.uploading": string;
|
|
111
|
+
"editor.video.dialog.title": string;
|
|
112
|
+
"editor.video.dialog.link": string;
|
|
113
|
+
"editor.video.dialog.placeholder": string;
|
|
114
|
+
"editor.video.dialog.button.apply": string;
|
|
115
|
+
"editor.table.tooltip": string;
|
|
116
|
+
"editor.table.menu.insert_table": string;
|
|
117
|
+
"editor.table.menu.insert_table.with_header_row": string;
|
|
118
|
+
"editor.table.menu.insertColumnBefore": string;
|
|
119
|
+
"editor.table.menu.insertColumnAfter": string;
|
|
120
|
+
"editor.table.menu.deleteColumn": string;
|
|
121
|
+
"editor.table.menu.insertRowAbove": string;
|
|
122
|
+
"editor.table.menu.insertRowBelow": string;
|
|
123
|
+
"editor.table.menu.deleteRow": string;
|
|
124
|
+
"editor.table.menu.mergeCells": string;
|
|
125
|
+
"editor.table.menu.splitCells": string;
|
|
126
|
+
"editor.table.menu.deleteTable": string;
|
|
127
|
+
"editor.table.menu.setCellsBgColor": string;
|
|
128
|
+
"editor.blockquote.tooltip": string;
|
|
129
|
+
"editor.horizontalrule.tooltip": string;
|
|
130
|
+
"editor.code.tooltip": string;
|
|
131
|
+
"editor.codeblock.tooltip": string;
|
|
132
|
+
"editor.clear.tooltip": string;
|
|
133
|
+
"editor.undo.tooltip": string;
|
|
134
|
+
"editor.redo.tooltip": string;
|
|
135
|
+
"editor.fullscreen.tooltip.fullscreen": string;
|
|
136
|
+
"editor.fullscreen.tooltip.exit": string;
|
|
137
|
+
"editor.imageUpload.fileTypeNotSupported": string;
|
|
138
|
+
"editor.imageUpload.fileSizeTooBig": string;
|
|
139
|
+
"editor.AI.placeholder": string;
|
|
140
|
+
"editor.AI.generating": string;
|
|
141
|
+
"editor.AI.insert": string;
|
|
142
|
+
"editor.AI.replace": string;
|
|
143
|
+
"editor.AI.regenerate": string;
|
|
144
|
+
"editor.AI.close": string;
|
|
145
|
+
"editor.AI.stop": string;
|
|
146
|
+
"editor.AI.ask": string;
|
|
147
|
+
"editor.menubar.file": string;
|
|
148
|
+
"editor.menubar.edit": string;
|
|
149
|
+
"editor.menubar.view": string;
|
|
150
|
+
"editor.menubar.insert": string;
|
|
151
|
+
"editor.menubar.format": string;
|
|
152
|
+
"editor.menubar.menu.newDoc": string;
|
|
153
|
+
"editor.menubar.menu.restoreLastDraft": string;
|
|
154
|
+
"editor.menubar.menu.print": string;
|
|
155
|
+
"editor.menubar.menu.cut": string;
|
|
156
|
+
"editor.menubar.menu.copy": string;
|
|
157
|
+
"editor.menubar.menu.paste": string;
|
|
158
|
+
"editor.menubar.menu.pasteAsText": string;
|
|
159
|
+
"editor.menubar.menu.selectAll": string;
|
|
160
|
+
"editor.menubar.menu.preview": string;
|
|
161
|
+
"editor.menubar.menu.spellCheck": string;
|
|
162
|
+
"editor.findAndReplace.tooltip": string;
|
|
163
|
+
"editor.findAndReplace.find": string;
|
|
164
|
+
"editor.findAndReplace.replace": string;
|
|
165
|
+
"editor.findAndReplace.replaceAll": string;
|
|
166
|
+
"editor.findAndReplace.caseSensitive": string;
|
|
167
|
+
"editor.printer.tooltip": string;
|
|
168
|
+
};
|
|
169
|
+
ko: {
|
|
170
|
+
"editor.remove": string;
|
|
171
|
+
"editor.copy": string;
|
|
172
|
+
"editor.words": string;
|
|
173
|
+
"editor.characters": string;
|
|
174
|
+
"editor.default": string;
|
|
175
|
+
"editor.recent": string;
|
|
176
|
+
"editor.nofill": string;
|
|
177
|
+
"editor.format": string;
|
|
178
|
+
"editor.close": string;
|
|
179
|
+
"editor.modify": string;
|
|
180
|
+
"editor.preview.tooltip": string;
|
|
181
|
+
"editor.draghandle.tooltip": string;
|
|
182
|
+
"editor.copyToClipboard": string;
|
|
183
|
+
"editor.importWord.tooltip": string;
|
|
184
|
+
"editor.importWord.success": string;
|
|
185
|
+
"editor.importWord.fileTooLarge": string;
|
|
186
|
+
"editor.importWord.error": string;
|
|
187
|
+
"editor.slash": string;
|
|
188
|
+
"editor.slash.empty": string;
|
|
189
|
+
"editor.slash.format": string;
|
|
190
|
+
"editor.slash.insert": string;
|
|
191
|
+
"editor.slash.embed": string;
|
|
192
|
+
"editor.content": string;
|
|
193
|
+
"editor.moremark": string;
|
|
194
|
+
"editor.size.small.tooltip": string;
|
|
195
|
+
"editor.size.medium.tooltip": string;
|
|
196
|
+
"editor.size.large.tooltip": string;
|
|
197
|
+
"editor.bold.tooltip": string;
|
|
198
|
+
"editor.italic.tooltip": string;
|
|
199
|
+
"editor.underline.tooltip": string;
|
|
200
|
+
"editor.strike.tooltip": string;
|
|
201
|
+
"editor.color.tooltip": string;
|
|
202
|
+
"editor.color.more": string;
|
|
203
|
+
"editor.highlight.tooltip": string;
|
|
204
|
+
"editor.lineheight.tooltip": string;
|
|
205
|
+
"editor.heading.tooltip": string;
|
|
206
|
+
"editor.heading.h1.tooltip": string;
|
|
207
|
+
"editor.heading.h2.tooltip": string;
|
|
208
|
+
"editor.heading.h3.tooltip": string;
|
|
209
|
+
"editor.heading.h4.tooltip": string;
|
|
210
|
+
"editor.heading.h5.tooltip": string;
|
|
211
|
+
"editor.heading.h6.tooltip": string;
|
|
212
|
+
"editor.paragraph.tooltip": string;
|
|
213
|
+
"editor.textalign.tooltip": string;
|
|
214
|
+
"editor.textalign.left.tooltip": string;
|
|
215
|
+
"editor.textalign.center.tooltip": string;
|
|
216
|
+
"editor.textalign.right.tooltip": string;
|
|
217
|
+
"editor.textalign.justify.tooltip": string;
|
|
218
|
+
"editor.indent": string;
|
|
219
|
+
"editor.indent.indent": string;
|
|
220
|
+
"editor.indent.outdent": string;
|
|
221
|
+
"editor.fontFamily.tooltip": string;
|
|
222
|
+
"editor.fontFamily.default": string;
|
|
223
|
+
"editor.fontSize.tooltip": string;
|
|
224
|
+
"editor.fontSize.default.tooltip": string;
|
|
225
|
+
"editor.superscript.tooltip": string;
|
|
226
|
+
"editor.subscript.tooltip": string;
|
|
227
|
+
"editor.bulletlist.tooltip": string;
|
|
228
|
+
"editor.bulletlist.disc.tooltip": string;
|
|
229
|
+
"editor.bulletlist.circle.tooltip": string;
|
|
230
|
+
"editor.bulletlist.square.tooltip": string;
|
|
231
|
+
"editor.orderedlist.tooltip": string;
|
|
232
|
+
"editor.orderedlist.decimal.tooltip": string;
|
|
233
|
+
"editor.orderedlist.decimalLeadingZero.tooltip": string;
|
|
234
|
+
"editor.orderedlist.lowerRoman.tooltip": string;
|
|
235
|
+
"editor.orderedlist.upperRoman.tooltip": string;
|
|
236
|
+
"editor.orderedlist.lowerLatin.tooltip": string;
|
|
237
|
+
"editor.orderedlist.upperLatin.tooltip": string;
|
|
238
|
+
"editor.orderedlist.tradChinaInformal.tooltip": string;
|
|
239
|
+
"editor.orderedlist.simpChinaFormal.tooltip": string;
|
|
240
|
+
"editor.tasklist.tooltip": string;
|
|
241
|
+
"editor.indent.tooltip": string;
|
|
242
|
+
"editor.outdent.tooltip": string;
|
|
243
|
+
"editor.columns.tooltip": string;
|
|
244
|
+
"editor.link.tooltip": string;
|
|
245
|
+
"editor.link.unlink.tooltip": string;
|
|
246
|
+
"editor.link.open.tooltip": string;
|
|
247
|
+
"editor.link.edit.tooltip": string;
|
|
248
|
+
"editor.link.dialog.title": string;
|
|
249
|
+
"editor.link.dialog.link": string;
|
|
250
|
+
"editor.link.dialog.text": string;
|
|
251
|
+
"editor.link.dialog.openInNewTab": string;
|
|
252
|
+
"editor.link.dialog.link.placeholder": string;
|
|
253
|
+
"editor.link.dialog.text.placeholder": string;
|
|
254
|
+
"editor.link.dialog.button.apply": string;
|
|
255
|
+
"editor.image.tooltip": string;
|
|
256
|
+
"editor.image.menu.flipX": string;
|
|
257
|
+
"editor.image.menu.flipY": string;
|
|
258
|
+
"editor.image.menu.size": string;
|
|
259
|
+
"editor.image.menu.size.width": string;
|
|
260
|
+
"editor.image.menu.size.height": string;
|
|
261
|
+
"editor.image.dragger.tooltip": string;
|
|
262
|
+
"editor.image.float.left.tooltip": string;
|
|
263
|
+
"editor.image.float.none.tooltip": string;
|
|
264
|
+
"editor.image.float.right.tooltip": string;
|
|
265
|
+
"editor.image.dialog.title": string;
|
|
266
|
+
"editor.image.dialog.tab.url": string;
|
|
267
|
+
"editor.image.dialog.tab.upload": string;
|
|
268
|
+
"editor.image.dialog.uploading": string;
|
|
269
|
+
"editor.image.dialog.form.link": string;
|
|
270
|
+
"editor.image.dialog.placeholder": string;
|
|
271
|
+
"editor.image.dialog.form.alt": string;
|
|
272
|
+
"editor.image.dialog.form.aspectRatio": string;
|
|
273
|
+
"editor.image.dialog.form.file": string;
|
|
274
|
+
"editor.image.dialog.button.apply": string;
|
|
275
|
+
"editor.video.tooltip": string;
|
|
276
|
+
"editor.video.dialog.tab.upload": string;
|
|
277
|
+
"editor.video.dialog.uploading": string;
|
|
278
|
+
"editor.video.dialog.title": string;
|
|
279
|
+
"editor.video.dialog.link": string;
|
|
280
|
+
"editor.video.dialog.placeholder": string;
|
|
281
|
+
"editor.video.dialog.button.apply": string;
|
|
282
|
+
"editor.table.tooltip": string;
|
|
283
|
+
"editor.table.menu.insert_table": string;
|
|
284
|
+
"editor.table.menu.insert_table.with_header_row": string;
|
|
285
|
+
"editor.table.menu.insertColumnBefore": string;
|
|
286
|
+
"editor.table.menu.insertColumnAfter": string;
|
|
287
|
+
"editor.table.menu.deleteColumn": string;
|
|
288
|
+
"editor.table.menu.insertRowAbove": string;
|
|
289
|
+
"editor.table.menu.insertRowBelow": string;
|
|
290
|
+
"editor.table.menu.deleteRow": string;
|
|
291
|
+
"editor.table.menu.mergeCells": string;
|
|
292
|
+
"editor.table.menu.splitCells": string;
|
|
293
|
+
"editor.table.menu.deleteTable": string;
|
|
294
|
+
"editor.table.menu.setCellsBgColor": string;
|
|
295
|
+
"editor.blockquote.tooltip": string;
|
|
296
|
+
"editor.horizontalrule.tooltip": string;
|
|
297
|
+
"editor.code.tooltip": string;
|
|
298
|
+
"editor.codeblock.tooltip": string;
|
|
299
|
+
"editor.clear.tooltip": string;
|
|
300
|
+
"editor.undo.tooltip": string;
|
|
301
|
+
"editor.redo.tooltip": string;
|
|
302
|
+
"editor.fullscreen.tooltip.fullscreen": string;
|
|
303
|
+
"editor.fullscreen.tooltip.exit": string;
|
|
304
|
+
"editor.imageUpload.fileTypeNotSupported": string;
|
|
305
|
+
"editor.imageUpload.fileSizeTooBig": string;
|
|
306
|
+
"editor.AI.placeholder": string;
|
|
307
|
+
"editor.AI.geneating": string;
|
|
308
|
+
"editor.AI.insert": string;
|
|
309
|
+
"editor.AI.replace": string;
|
|
310
|
+
"editor.AI.regenerate": string;
|
|
311
|
+
"editor.AI.close": string;
|
|
312
|
+
"editor.AI.stop": string;
|
|
313
|
+
"editor.AI.ask": string;
|
|
314
|
+
"editor.menubar.file": string;
|
|
315
|
+
"editor.menubar.edit": string;
|
|
316
|
+
"editor.menubar.view": string;
|
|
317
|
+
"editor.menubar.insert": string;
|
|
318
|
+
"editor.menubar.format": string;
|
|
319
|
+
"editor.menubar.menu.newDoc": string;
|
|
320
|
+
"editor.menubar.menu.restoreLastDraft": string;
|
|
321
|
+
"editor.menubar.menu.print": string;
|
|
322
|
+
"editor.menubar.menu.cut": string;
|
|
323
|
+
"editor.menubar.menu.copy": string;
|
|
324
|
+
"editor.menubar.menu.paste": string;
|
|
325
|
+
"editor.menubar.menu.pasteAsText": string;
|
|
326
|
+
"editor.menubar.menu.selectAll": string;
|
|
327
|
+
"editor.menubar.menu.preview": string;
|
|
328
|
+
"editor.menubar.menu.spellCheck": string;
|
|
329
|
+
"editor.findAndReplace.tooltip": string;
|
|
330
|
+
"editor.findAndReplace.find": string;
|
|
331
|
+
"editor.findAndReplace.replace": string;
|
|
332
|
+
"editor.findAndReplace.replaceAll": string;
|
|
333
|
+
"editor.findAndReplace.caseSensitive": string;
|
|
334
|
+
"editor.printer.tooltip": string;
|
|
335
|
+
};
|
|
336
|
+
}, {}, {}, string, false>;
|
|
337
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as CoreEditor } from './components/CoreEditor.vue';
|
|
3
|
+
import { default as ActionButton } from './components/ActionButton.vue';
|
|
4
|
+
|
|
5
|
+
declare const SBSEditorPlugin: Plugin;
|
|
6
|
+
export * from './extensions';
|
|
7
|
+
export * from './hooks';
|
|
8
|
+
export type * from './type';
|
|
9
|
+
export { useEditor } from '@tiptap/vue-3';
|
|
10
|
+
export { type Editor as EditorInstance } from '@tiptap/core';
|
|
11
|
+
export { SBSEditorPlugin, CoreEditor, ActionButton };
|
|
12
|
+
export default SBSEditorPlugin;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from '@tiptap/pm/state';
|
|
2
|
+
import { DecorationSet, EditorView } from '@tiptap/pm/view';
|
|
3
|
+
|
|
4
|
+
export declare const UploadImagesPlugin: () => Plugin<DecorationSet>;
|
|
5
|
+
export interface ImageUploadOptions {
|
|
6
|
+
validateFn?: (file: File) => boolean;
|
|
7
|
+
onUpload: (file: File) => Promise<string | object>;
|
|
8
|
+
}
|
|
9
|
+
export type UploadFn = (files: File[], view: EditorView, pos: number) => void;
|
|
10
|
+
export declare const createImageUpload: ({ validateFn, onUpload }: ImageUploadOptions) => UploadFn;
|
|
11
|
+
export declare const handleImagePaste: (view: EditorView, event: ClipboardEvent, uploadFn: UploadFn) => boolean;
|
|
12
|
+
export declare const handleImageDrop: (view: EditorView, event: DragEvent, moved: boolean, uploadFn: UploadFn) => boolean;
|