daisy-tiptap-test 0.0.6
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/LICENSE +21 -0
- package/README.md +441 -0
- package/dist/components/AddLinkButton.vue.d.ts +30 -0
- package/dist/components/AddLinkButton.vue.js +1 -0
- package/dist/components/BubbleMenu.vue.d.ts +25 -0
- package/dist/components/BubbleMenu.vue.js +1 -0
- package/dist/components/ColorDropdown.vue.d.ts +34 -0
- package/dist/components/ColorDropdown.vue.js +1 -0
- package/dist/components/DaisyTiptap.vue.d.ts +584 -0
- package/dist/components/DaisyTiptap.vue.js +1 -0
- package/dist/components/EditImageButton.vue.d.ts +24 -0
- package/dist/components/EditImageButton.vue.js +1 -0
- package/dist/components/EditLinkDialog.vue.d.ts +33 -0
- package/dist/components/EditLinkDialog.vue.js +1 -0
- package/dist/components/EmojiDropdown.vue.d.ts +33 -0
- package/dist/components/EmojiDropdown.vue.js +1 -0
- package/dist/components/FloatingMenu.vue.d.ts +24 -0
- package/dist/components/FloatingMenu.vue.js +1 -0
- package/dist/components/FontFamilyDropdown.vue.d.ts +30 -0
- package/dist/components/FontFamilyDropdown.vue.js +1 -0
- package/dist/components/FontSizeDropdown.vue.d.ts +30 -0
- package/dist/components/FontSizeDropdown.vue.js +1 -0
- package/dist/components/HeadingDropdown.vue.d.ts +32 -0
- package/dist/components/HeadingDropdown.vue.js +1 -0
- package/dist/components/Icon.vue.d.ts +12 -0
- package/dist/components/Icon.vue.js +1 -0
- package/dist/components/ImageBubbleMenu.vue.d.ts +23 -0
- package/dist/components/ImageBubbleMenu.vue.js +1 -0
- package/dist/components/ImageView.vue.d.ts +53 -0
- package/dist/components/ImageView.vue.js +1 -0
- package/dist/components/InsertImageButton.vue.d.ts +13 -0
- package/dist/components/InsertImageButton.vue.js +1 -0
- package/dist/components/LinkBubbleMenu.vue.d.ts +30 -0
- package/dist/components/LinkBubbleMenu.vue.js +1 -0
- package/dist/components/MentionView.vue.d.ts +34 -0
- package/dist/components/MentionView.vue.js +1 -0
- package/dist/components/MenuBar.vue.d.ts +24 -0
- package/dist/components/MenuBar.vue.js +1 -0
- package/dist/components/TableBubbleMenu.vue.d.ts +23 -0
- package/dist/components/TableBubbleMenu.vue.js +1 -0
- package/dist/components/TableDropdown.vue.d.ts +30 -0
- package/dist/components/TableDropdown.vue.js +1 -0
- package/dist/components/TaskItemView.vue.d.ts +20 -0
- package/dist/components/TaskItemView.vue.js +1 -0
- package/dist/components/UniversalToggleButton.vue.d.ts +39 -0
- package/dist/components/UniversalToggleButton.vue.js +1 -0
- package/dist/components/index.d.ts +51 -0
- package/dist/components/index.js +1 -0
- package/dist/extensions/blockquote.d.ts +25 -0
- package/dist/extensions/blockquote.js +1 -0
- package/dist/extensions/bold.d.ts +28 -0
- package/dist/extensions/bold.js +1 -0
- package/dist/extensions/bullet-list.d.ts +20 -0
- package/dist/extensions/bullet-list.js +1 -0
- package/dist/extensions/character-count.d.ts +28 -0
- package/dist/extensions/character-count.js +1 -0
- package/dist/extensions/code-block-lowlight.d.ts +8 -0
- package/dist/extensions/code-block-lowlight.js +1 -0
- package/dist/extensions/code-block.d.ts +43 -0
- package/dist/extensions/code-block.js +4 -0
- package/dist/extensions/code.d.ts +26 -0
- package/dist/extensions/code.js +1 -0
- package/dist/extensions/color.d.ts +21 -0
- package/dist/extensions/color.js +1 -0
- package/dist/extensions/document.d.ts +10 -0
- package/dist/extensions/document.js +1 -0
- package/dist/extensions/dropcursor.d.ts +7 -0
- package/dist/extensions/dropcursor.js +1 -0
- package/dist/extensions/emoji.d.ts +17 -0
- package/dist/extensions/emoji.js +1 -0
- package/dist/extensions/focus.d.ts +6 -0
- package/dist/extensions/focus.js +1 -0
- package/dist/extensions/font-family.d.ts +23 -0
- package/dist/extensions/font-family.js +1 -0
- package/dist/extensions/font-size.d.ts +20 -0
- package/dist/extensions/font-size.js +1 -0
- package/dist/extensions/gapcursor.d.ts +15 -0
- package/dist/extensions/gapcursor.js +1 -0
- package/dist/extensions/hard-break.d.ts +17 -0
- package/dist/extensions/hard-break.js +2 -0
- package/dist/extensions/heading.d.ts +26 -0
- package/dist/extensions/heading.js +1 -0
- package/dist/extensions/highlight.d.ts +32 -0
- package/dist/extensions/highlight.js +1 -0
- package/dist/extensions/history.d.ts +21 -0
- package/dist/extensions/history.js +1 -0
- package/dist/extensions/horizontal-rule.d.ts +16 -0
- package/dist/extensions/horizontal-rule.js +1 -0
- package/dist/extensions/image.d.ts +25 -0
- package/dist/extensions/image.js +1 -0
- package/dist/extensions/indent.d.ts +21 -0
- package/dist/extensions/indent.js +1 -0
- package/dist/extensions/index.d.ts +104 -0
- package/dist/extensions/index.js +1 -0
- package/dist/extensions/italic.d.ts +28 -0
- package/dist/extensions/italic.js +1 -0
- package/dist/extensions/link.d.ts +63 -0
- package/dist/extensions/link.js +1 -0
- package/dist/extensions/list-item.d.ts +7 -0
- package/dist/extensions/list-item.js +1 -0
- package/dist/extensions/mention.d.ts +14 -0
- package/dist/extensions/mention.js +1 -0
- package/dist/extensions/ordered-list.d.ts +20 -0
- package/dist/extensions/ordered-list.js +1 -0
- package/dist/extensions/paragraph.d.ts +15 -0
- package/dist/extensions/paragraph.js +1 -0
- package/dist/extensions/placeholder.d.ts +16 -0
- package/dist/extensions/placeholder.js +1 -0
- package/dist/extensions/strike.d.ts +26 -0
- package/dist/extensions/strike.js +1 -0
- package/dist/extensions/subscript.d.ts +24 -0
- package/dist/extensions/subscript.js +1 -0
- package/dist/extensions/superscript.d.ts +24 -0
- package/dist/extensions/superscript.js +1 -0
- package/dist/extensions/table-cell.d.ts +5 -0
- package/dist/extensions/table-cell.js +1 -0
- package/dist/extensions/table-header.d.ts +5 -0
- package/dist/extensions/table-header.js +1 -0
- package/dist/extensions/table-row.d.ts +5 -0
- package/dist/extensions/table-row.js +1 -0
- package/dist/extensions/table.d.ts +56 -0
- package/dist/extensions/table.js +1 -0
- package/dist/extensions/tableView.d.ts +17 -0
- package/dist/extensions/tableView.js +1 -0
- package/dist/extensions/task-item.d.ts +10 -0
- package/dist/extensions/task-item.js +1 -0
- package/dist/extensions/task-list.d.ts +17 -0
- package/dist/extensions/task-list.js +1 -0
- package/dist/extensions/text-align.d.ts +22 -0
- package/dist/extensions/text-align.js +1 -0
- package/dist/extensions/text-style.d.ts +16 -0
- package/dist/extensions/text-style.js +1 -0
- package/dist/extensions/text.d.ts +2 -0
- package/dist/extensions/text.js +1 -0
- package/dist/extensions/typography.d.ts +48 -0
- package/dist/extensions/typography.js +1 -0
- package/dist/extensions/underline.d.ts +24 -0
- package/dist/extensions/underline.js +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useCharacterCount.d.ts +5 -0
- package/dist/hooks/useCharacterCount.js +1 -0
- package/dist/hooks/useCodeView.d.ts +6 -0
- package/dist/hooks/useCodeView.js +1 -0
- package/dist/hooks/useEditorStyle.d.ts +7 -0
- package/dist/hooks/useEditorStyle.js +1 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/index.js +1 -0
- package/dist/i18n/locales/en/index.d.ts +237 -0
- package/dist/i18n/locales/en/index.js +1 -0
- package/dist/i18n/locales/index.d.ts +3 -0
- package/dist/i18n/locales/index.js +1 -0
- package/dist/i18n/locales/zh/index.d.ts +237 -0
- package/dist/i18n/locales/zh/index.js +1 -0
- package/dist/i18n/locales/zh-tw/index.d.ts +237 -0
- package/dist/i18n/locales/zh-tw/index.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/plugin/autolink.d.ts +10 -0
- package/dist/plugin/autolink.js +1 -0
- package/dist/plugin/clickHandler.d.ts +7 -0
- package/dist/plugin/clickHandler.js +1 -0
- package/dist/plugin/emojis.d.ts +1 -0
- package/dist/plugin/emojis.js +1 -0
- package/dist/plugin/icons.d.ts +5 -0
- package/dist/plugin/icons.js +1 -0
- package/dist/plugin/index.d.ts +7 -0
- package/dist/plugin/index.js +1 -0
- package/dist/plugin/lowlight.d.ts +6 -0
- package/dist/plugin/lowlight.js +1 -0
- package/dist/plugin/pasteHandler.d.ts +9 -0
- package/dist/plugin/pasteHandler.js +1 -0
- package/dist/plugin/suggestion.d.ts +2 -0
- package/dist/plugin/suggestion.js +1 -0
- package/dist/utils/color.d.ts +2 -0
- package/dist/utils/color.js +1 -0
- package/dist/utils/constants.d.ts +24 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/createCell.d.ts +2 -0
- package/dist/utils/createCell.js +1 -0
- package/dist/utils/createTable.d.ts +2 -0
- package/dist/utils/createTable.js +1 -0
- package/dist/utils/deleteTableWhenAllCellsSelected.d.ts +2 -0
- package/dist/utils/deleteTableWhenAllCellsSelected.js +1 -0
- package/dist/utils/fontFamily.d.ts +3 -0
- package/dist/utils/fontFamily.js +1 -0
- package/dist/utils/fontSize.d.ts +2 -0
- package/dist/utils/fontSize.js +1 -0
- package/dist/utils/getTableNodeTypes.d.ts +4 -0
- package/dist/utils/getTableNodeTypes.js +1 -0
- package/dist/utils/image.d.ts +14 -0
- package/dist/utils/image.js +1 -0
- package/dist/utils/indent.d.ts +12 -0
- package/dist/utils/indent.js +1 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/isCellSelection.d.ts +2 -0
- package/dist/utils/isCellSelection.js +1 -0
- package/dist/utils/shared.d.ts +20 -0
- package/dist/utils/shared.js +1 -0
- package/package.json +18 -0
- package/style.css +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Node as e}from"@tiptap/core";const o=e.create({name:"text",group:"inline"});export{o as Text};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export interface TypographyOptions {
|
|
3
|
+
emDash: false | string;
|
|
4
|
+
ellipsis: false | string;
|
|
5
|
+
openDoubleQuote: false | string;
|
|
6
|
+
closeDoubleQuote: false | string;
|
|
7
|
+
openSingleQuote: false | string;
|
|
8
|
+
closeSingleQuote: false | string;
|
|
9
|
+
leftArrow: false | string;
|
|
10
|
+
rightArrow: false | string;
|
|
11
|
+
copyright: false | string;
|
|
12
|
+
trademark: false | string;
|
|
13
|
+
servicemark: false | string;
|
|
14
|
+
registeredTrademark: false | string;
|
|
15
|
+
oneHalf: false | string;
|
|
16
|
+
plusMinus: false | string;
|
|
17
|
+
notEqual: false | string;
|
|
18
|
+
laquo: false | string;
|
|
19
|
+
raquo: false | string;
|
|
20
|
+
multiplication: false | string;
|
|
21
|
+
superscriptTwo: false | string;
|
|
22
|
+
superscriptThree: false | string;
|
|
23
|
+
oneQuarter: false | string;
|
|
24
|
+
threeQuarters: false | string;
|
|
25
|
+
}
|
|
26
|
+
export declare const emDash: (override?: string) => import("@tiptap/core").InputRule;
|
|
27
|
+
export declare const ellipsis: (override?: string) => import("@tiptap/core").InputRule;
|
|
28
|
+
export declare const openDoubleQuote: (override?: string) => import("@tiptap/core").InputRule;
|
|
29
|
+
export declare const closeDoubleQuote: (override?: string) => import("@tiptap/core").InputRule;
|
|
30
|
+
export declare const openSingleQuote: (override?: string) => import("@tiptap/core").InputRule;
|
|
31
|
+
export declare const closeSingleQuote: (override?: string) => import("@tiptap/core").InputRule;
|
|
32
|
+
export declare const leftArrow: (override?: string) => import("@tiptap/core").InputRule;
|
|
33
|
+
export declare const rightArrow: (override?: string) => import("@tiptap/core").InputRule;
|
|
34
|
+
export declare const copyright: (override?: string) => import("@tiptap/core").InputRule;
|
|
35
|
+
export declare const trademark: (override?: string) => import("@tiptap/core").InputRule;
|
|
36
|
+
export declare const servicemark: (override?: string) => import("@tiptap/core").InputRule;
|
|
37
|
+
export declare const registeredTrademark: (override?: string) => import("@tiptap/core").InputRule;
|
|
38
|
+
export declare const oneHalf: (override?: string) => import("@tiptap/core").InputRule;
|
|
39
|
+
export declare const plusMinus: (override?: string) => import("@tiptap/core").InputRule;
|
|
40
|
+
export declare const notEqual: (override?: string) => import("@tiptap/core").InputRule;
|
|
41
|
+
export declare const laquo: (override?: string) => import("@tiptap/core").InputRule;
|
|
42
|
+
export declare const raquo: (override?: string) => import("@tiptap/core").InputRule;
|
|
43
|
+
export declare const multiplication: (override?: string) => import("@tiptap/core").InputRule;
|
|
44
|
+
export declare const superscriptTwo: (override?: string) => import("@tiptap/core").InputRule;
|
|
45
|
+
export declare const superscriptThree: (override?: string) => import("@tiptap/core").InputRule;
|
|
46
|
+
export declare const oneQuarter: (override?: string) => import("@tiptap/core").InputRule;
|
|
47
|
+
export declare const threeQuarters: (override?: string) => import("@tiptap/core").InputRule;
|
|
48
|
+
export declare const Typography: Extension<TypographyOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Extension as i,textInputRule as o}from"@tiptap/core";const t=s=>o({find:/--$/,replace:s??"—"}),e=s=>o({find:/\.\.\.$/,replace:s??"…"}),p=s=>o({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:s??"“"}),n=s=>o({find:/"$/,replace:s??"”"}),r=s=>o({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:s??"‘"}),l=s=>o({find:/'$/,replace:s??"’"}),a=s=>o({find:/<-$/,replace:s??"←"}),h=s=>o({find:/->$/,replace:s??"→"}),u=s=>o({find:/\(c\)$/,replace:s??"©"}),f=s=>o({find:/\(tm\)$/,replace:s??"™"}),c=s=>o({find:/\(sm\)$/,replace:s??"℠"}),d=s=>o({find:/\(r\)$/,replace:s??"®"}),$=s=>o({find:/(?:^|\s)(1\/2)$/,replace:s??"½"}),m=s=>o({find:/\+\/-$/,replace:s??"±"}),Q=s=>o({find:/!=$/,replace:s??"≠"}),g=s=>o({find:/<<$/,replace:s??"«"}),T=s=>o({find:/>>$/,replace:s??"»"}),k=s=>o({find:/\d+\s?([*x])\s?\d+$/,replace:s??"×"}),q=s=>o({find:/\^2$/,replace:s??"²"}),w=s=>o({find:/\^3$/,replace:s??"³"}),D=s=>o({find:/(?:^|\s)(1\/4)$/,replace:s??"¼"}),y=s=>o({find:/(?:^|\s)(3\/4)$/,replace:s??"¾"}),A=i.create({name:"typography",addInputRules(){const s=[];return this.options.emDash!==!1&&s.push(t(this.options.emDash)),this.options.ellipsis!==!1&&s.push(e(this.options.ellipsis)),this.options.openDoubleQuote!==!1&&s.push(p(this.options.openDoubleQuote)),this.options.closeDoubleQuote!==!1&&s.push(n(this.options.closeDoubleQuote)),this.options.openSingleQuote!==!1&&s.push(r(this.options.openSingleQuote)),this.options.closeSingleQuote!==!1&&s.push(l(this.options.closeSingleQuote)),this.options.leftArrow!==!1&&s.push(a(this.options.leftArrow)),this.options.rightArrow!==!1&&s.push(h(this.options.rightArrow)),this.options.copyright!==!1&&s.push(u(this.options.copyright)),this.options.trademark!==!1&&s.push(f(this.options.trademark)),this.options.servicemark!==!1&&s.push(c(this.options.servicemark)),this.options.registeredTrademark!==!1&&s.push(d(this.options.registeredTrademark)),this.options.oneHalf!==!1&&s.push($(this.options.oneHalf)),this.options.plusMinus!==!1&&s.push(m(this.options.plusMinus)),this.options.notEqual!==!1&&s.push(Q(this.options.notEqual)),this.options.laquo!==!1&&s.push(g(this.options.laquo)),this.options.raquo!==!1&&s.push(T(this.options.raquo)),this.options.multiplication!==!1&&s.push(k(this.options.multiplication)),this.options.superscriptTwo!==!1&&s.push(q(this.options.superscriptTwo)),this.options.superscriptThree!==!1&&s.push(w(this.options.superscriptThree)),this.options.oneQuarter!==!1&&s.push(D(this.options.oneQuarter)),this.options.threeQuarters!==!1&&s.push(y(this.options.threeQuarters)),s}});export{A as Typography,n as closeDoubleQuote,l as closeSingleQuote,u as copyright,e as ellipsis,t as emDash,g as laquo,a as leftArrow,k as multiplication,Q as notEqual,$ as oneHalf,D as oneQuarter,p as openDoubleQuote,r as openSingleQuote,m as plusMinus,T as raquo,d as registeredTrademark,h as rightArrow,c as servicemark,w as superscriptThree,q as superscriptTwo,y as threeQuarters,f as trademark};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Mark } from '@tiptap/core';
|
|
2
|
+
export interface UnderlineOptions {
|
|
3
|
+
HTMLAttributes: Record<string, any>;
|
|
4
|
+
bubble?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare module '@tiptap/core' {
|
|
7
|
+
interface Commands<ReturnType> {
|
|
8
|
+
underline: {
|
|
9
|
+
/**
|
|
10
|
+
* Set an underline mark
|
|
11
|
+
*/
|
|
12
|
+
setUnderline: () => ReturnType;
|
|
13
|
+
/**
|
|
14
|
+
* Toggle an underline mark
|
|
15
|
+
*/
|
|
16
|
+
toggleUnderline: () => ReturnType;
|
|
17
|
+
/**
|
|
18
|
+
* Unset an underline mark
|
|
19
|
+
*/
|
|
20
|
+
unsetUnderline: () => ReturnType;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Underline: Mark<UnderlineOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Mark as n,mergeAttributes as r}from"@tiptap/core";import{UniversalToggleButton as o}from"../components";const d=n.create({name:"underline",addOptions(){return{HTMLAttributes:{},btn({editor:e,i18n:t}){return{component:o,componentProps:{toggle:()=>{e.commands.toggleUnderline(),e.chain().focus().run()},isActive:e.isActive("underline"),icon:"underline",tooltip:t("editor.extensions.Underline.tooltip")}}}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",r(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});export{d as Underline};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as o}from"./useCharacterCount.js";import{default as a}from"./useCodeView.js";import{default as f}from"./useEditorStyle.js";export{o as useCharacterCount,a as useCodeView,f as useEditorStyle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{computed as a}from"vue";function o(t){return{characters:a(()=>{var r;return(r=t.value)==null?void 0:r.storage.characterCount.characters()})}}export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ref as c,watch as g,nextTick as p,provide as a,unref as s}from"vue";function w(r){let t;const i=c(),n=c(!1),d=e=>{n.value=e},l=e=>{e.execCommand("selectAll");const o={from:e.getCursor(!0),to:e.getCursor(!1)};e.autoFormatRange(o.from,o.to),e.setCursor(0)},f=()=>{const e=s(r).extensionManager.extensions.find(o=>o.name==="codeView");if(e){const{codemirror:o,codemirrorOptions:u}=e.options;if(o){const C={...u,readOnly:!1,spellCheck:!1};t=o.fromTextArea(i.value,C),t.setValue(s(r).getHTML()),l(t)}}},m=()=>{const e=t.doc.cm.getWrapperElement();e&&e.remove&&e.remove(),t=null};return g(n,e=>{if(e)p(()=>{t||f()});else if(t){const o=t.getValue();s(r).commands.setContent(o,!0),m()}}),a("isCodeViewMode",n),a("toggleIsCodeViewMode",d),{cmTextAreaRef:i,isCodeViewMode:n}}export{w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r="px";function N({width:e,height:t}){return[{width:isNaN(Number(e))?e:`${e}${r}`,height:isNaN(Number(t))?t:`${t}${r}`}]}export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./locales/en/index.js";import{default as p}from"./locales/zh/index.js";import{default as i}from"./locales/zh-tw/index.js";const s={buildI18nHandler(t=o){return function(r){return r.split(".").reduce((e,n)=>e[n],t)}}};export{s as Trans,o as en,p as zh,i as zh_tw};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
editor: {
|
|
3
|
+
extensions: {
|
|
4
|
+
Bold: {
|
|
5
|
+
tooltip: string;
|
|
6
|
+
};
|
|
7
|
+
Code: {
|
|
8
|
+
tooltip: string;
|
|
9
|
+
};
|
|
10
|
+
Underline: {
|
|
11
|
+
tooltip: string;
|
|
12
|
+
};
|
|
13
|
+
Italic: {
|
|
14
|
+
tooltip: string;
|
|
15
|
+
};
|
|
16
|
+
Strike: {
|
|
17
|
+
tooltip: string;
|
|
18
|
+
};
|
|
19
|
+
HardBreak: {
|
|
20
|
+
tooltip: string;
|
|
21
|
+
};
|
|
22
|
+
Heading: {
|
|
23
|
+
tooltip: string;
|
|
24
|
+
buttons: {
|
|
25
|
+
paragraph: string;
|
|
26
|
+
heading: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
Blockquote: {
|
|
30
|
+
tooltip: string;
|
|
31
|
+
};
|
|
32
|
+
CodeBlock: {
|
|
33
|
+
tooltip: string;
|
|
34
|
+
};
|
|
35
|
+
Link: {
|
|
36
|
+
add: {
|
|
37
|
+
tooltip: string;
|
|
38
|
+
control: {
|
|
39
|
+
title: string;
|
|
40
|
+
href: string;
|
|
41
|
+
open_in_new_tab: string;
|
|
42
|
+
confirm: string;
|
|
43
|
+
cancel: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
edit: {
|
|
47
|
+
tooltip: string;
|
|
48
|
+
control: {
|
|
49
|
+
title: string;
|
|
50
|
+
href: string;
|
|
51
|
+
open_in_new_tab: string;
|
|
52
|
+
confirm: string;
|
|
53
|
+
cancel: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
unlink: {
|
|
57
|
+
tooltip: string;
|
|
58
|
+
};
|
|
59
|
+
open: {
|
|
60
|
+
tooltip: string;
|
|
61
|
+
};
|
|
62
|
+
back: {
|
|
63
|
+
tooltip: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
Subscript: {
|
|
67
|
+
tooltip: string;
|
|
68
|
+
};
|
|
69
|
+
Superscript: {
|
|
70
|
+
tooltip: string;
|
|
71
|
+
};
|
|
72
|
+
Image: {
|
|
73
|
+
buttons: {
|
|
74
|
+
insert_image: {
|
|
75
|
+
tooltip: string;
|
|
76
|
+
external: string;
|
|
77
|
+
upload: string;
|
|
78
|
+
};
|
|
79
|
+
remove_image: {
|
|
80
|
+
tooltip: string;
|
|
81
|
+
};
|
|
82
|
+
image_options: {
|
|
83
|
+
tooltip: string;
|
|
84
|
+
};
|
|
85
|
+
display: {
|
|
86
|
+
tooltip: string;
|
|
87
|
+
inline: string;
|
|
88
|
+
block: string;
|
|
89
|
+
left: string;
|
|
90
|
+
right: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
control: {
|
|
94
|
+
insert_by_url: {
|
|
95
|
+
title: string;
|
|
96
|
+
placeholder: string;
|
|
97
|
+
confirm: string;
|
|
98
|
+
cancel: string;
|
|
99
|
+
invalid_url: string;
|
|
100
|
+
};
|
|
101
|
+
upload_image: {
|
|
102
|
+
title: string;
|
|
103
|
+
button: string;
|
|
104
|
+
};
|
|
105
|
+
edit_image: {
|
|
106
|
+
title: string;
|
|
107
|
+
confirm: string;
|
|
108
|
+
cancel: string;
|
|
109
|
+
form: {
|
|
110
|
+
src: string;
|
|
111
|
+
alt: string;
|
|
112
|
+
width: string;
|
|
113
|
+
height: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
Iframe: {
|
|
119
|
+
tooltip: string;
|
|
120
|
+
control: {
|
|
121
|
+
title: string;
|
|
122
|
+
placeholder: string;
|
|
123
|
+
confirm: string;
|
|
124
|
+
cancel: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
BulletList: {
|
|
128
|
+
tooltip: string;
|
|
129
|
+
};
|
|
130
|
+
OrderedList: {
|
|
131
|
+
tooltip: string;
|
|
132
|
+
};
|
|
133
|
+
TodoList: {
|
|
134
|
+
tooltip: string;
|
|
135
|
+
};
|
|
136
|
+
TextAlign: {
|
|
137
|
+
buttons: {
|
|
138
|
+
align_left: {
|
|
139
|
+
tooltip: string;
|
|
140
|
+
};
|
|
141
|
+
align_center: {
|
|
142
|
+
tooltip: string;
|
|
143
|
+
};
|
|
144
|
+
align_right: {
|
|
145
|
+
tooltip: string;
|
|
146
|
+
};
|
|
147
|
+
align_justify: {
|
|
148
|
+
tooltip: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
FontFamily: {
|
|
153
|
+
tooltip: string;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
FontSize: {
|
|
157
|
+
tooltip: string;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
TextColor: {
|
|
161
|
+
tooltip: string;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
TextHighlight: {
|
|
165
|
+
tooltip: string;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
LineHeight: {
|
|
169
|
+
tooltip: string;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
Table: {
|
|
173
|
+
tooltip: string;
|
|
174
|
+
buttons: {
|
|
175
|
+
more: string;
|
|
176
|
+
add_column_before: string;
|
|
177
|
+
add_column_after: string;
|
|
178
|
+
delete_column: string;
|
|
179
|
+
add_row_before: string;
|
|
180
|
+
add_row_after: string;
|
|
181
|
+
delete_row: string;
|
|
182
|
+
merge_cells: string;
|
|
183
|
+
split_cell: string;
|
|
184
|
+
delete_table: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
Indent: {
|
|
188
|
+
buttons: {
|
|
189
|
+
indent: {
|
|
190
|
+
tooltip: string;
|
|
191
|
+
};
|
|
192
|
+
outdent: {
|
|
193
|
+
tooltip: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
FormatClear: {
|
|
198
|
+
tooltip: string;
|
|
199
|
+
};
|
|
200
|
+
HorizontalRule: {
|
|
201
|
+
tooltip: string;
|
|
202
|
+
};
|
|
203
|
+
History: {
|
|
204
|
+
tooltip: {
|
|
205
|
+
undo: string;
|
|
206
|
+
redo: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
Fullscreen: {
|
|
210
|
+
tooltip: {
|
|
211
|
+
fullscreen: string;
|
|
212
|
+
exit_fullscreen: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
Print: {
|
|
216
|
+
tooltip: string;
|
|
217
|
+
};
|
|
218
|
+
Preview: {
|
|
219
|
+
tooltip: string;
|
|
220
|
+
dialog: {
|
|
221
|
+
title: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
SelectAll: {
|
|
225
|
+
tooltip: string;
|
|
226
|
+
};
|
|
227
|
+
CodeView: {
|
|
228
|
+
tooltip: string;
|
|
229
|
+
};
|
|
230
|
+
Emoji: {
|
|
231
|
+
tooltip: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
characters: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={editor:{extensions:{Bold:{tooltip:"Bold"},Code:{tooltip:"Code inline"},Underline:{tooltip:"Underline"},Italic:{tooltip:"Italic"},Strike:{tooltip:"Strike through"},HardBreak:{tooltip:"Force line breaks"},Heading:{tooltip:"Heading",buttons:{paragraph:"Paragraph",heading:"Heading"}},Blockquote:{tooltip:"Block quote"},CodeBlock:{tooltip:"Code block"},Link:{add:{tooltip:"Apply link",control:{title:"Apply Link",href:"Href",open_in_new_tab:"Open in new tab",confirm:"Apply",cancel:"Cancel"}},edit:{tooltip:"Edit link",control:{title:"Edit Link",href:"Href",open_in_new_tab:"Open in new tab",confirm:"Update",cancel:"Cancel"}},unlink:{tooltip:"Unlink"},open:{tooltip:"Open link"},back:{tooltip:"Go back"}},Subscript:{tooltip:"Subscript"},Superscript:{tooltip:"Superscript"},Image:{buttons:{insert_image:{tooltip:"Insert image",external:"Insert Image By Url",upload:"Upload Image"},remove_image:{tooltip:"Remove"},image_options:{tooltip:"Image options"},display:{tooltip:"Display",inline:"Inline",block:"Break Text",left:"Float Left",right:"Float Right"}},control:{insert_by_url:{title:"Insert image",placeholder:"Url of image",confirm:"Insert",cancel:"Cancel",invalid_url:"Please enter the correct url"},upload_image:{title:"Upload image",button:"Choose an image file or drag it here"},edit_image:{title:"Edit image",confirm:"Update",cancel:"Cancel",form:{src:"Image Url",alt:"Alternative Text",width:"Width",height:"Height"}}}},Iframe:{tooltip:"Insert video",control:{title:"Insert video",placeholder:"Href",confirm:"Insert",cancel:"Cancel"}},BulletList:{tooltip:"Bullet list"},OrderedList:{tooltip:"Ordered list"},TodoList:{tooltip:"Todo list"},TextAlign:{buttons:{align_left:{tooltip:"Align left"},align_center:{tooltip:"Align center"},align_right:{tooltip:"Align right"},align_justify:{tooltip:"Align justify"}}},FontFamily:{tooltip:"Font family",default:"Default"},FontSize:{tooltip:"Font size",default:"Default"},TextColor:{tooltip:"Text color",default:"Default"},TextHighlight:{tooltip:"Text highlight",default:"Default"},LineHeight:{tooltip:"Line height",default:"Default"},Table:{tooltip:"Table",buttons:{more:"More settings",add_column_before:"Add Column Before",add_column_after:"Add Column After",delete_column:"Delete Column",add_row_before:"Add Row Before",add_row_after:"Add Row After",delete_row:"Delete Row",merge_cells:"Merge Cells",split_cell:"Split Cell",delete_table:"Delete Table"}},Indent:{buttons:{indent:{tooltip:"Indent"},outdent:{tooltip:"Outdent"}}},FormatClear:{tooltip:"Clear format"},HorizontalRule:{tooltip:"Horizontal rule"},History:{tooltip:{undo:"Undo",redo:"Redo"}},Fullscreen:{tooltip:{fullscreen:"Full screen",exit_fullscreen:"Exit full screen"}},Print:{tooltip:"Print"},Preview:{tooltip:"Preview",dialog:{title:"Preview"}},SelectAll:{tooltip:"Select all"},CodeView:{tooltip:"Code view"},Emoji:{tooltip:"Emoji"}},characters:"Characters"}};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as a}from"./en/index.js";import{default as o}from"./zh/index.js";import{default as d}from"./zh-tw/index.js";export{a as en,o as zh,d as zh_tw};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
editor: {
|
|
3
|
+
extensions: {
|
|
4
|
+
Bold: {
|
|
5
|
+
tooltip: string;
|
|
6
|
+
};
|
|
7
|
+
Code: {
|
|
8
|
+
tooltip: string;
|
|
9
|
+
};
|
|
10
|
+
Underline: {
|
|
11
|
+
tooltip: string;
|
|
12
|
+
};
|
|
13
|
+
Italic: {
|
|
14
|
+
tooltip: string;
|
|
15
|
+
};
|
|
16
|
+
Strike: {
|
|
17
|
+
tooltip: string;
|
|
18
|
+
};
|
|
19
|
+
HardBreak: {
|
|
20
|
+
tooltip: string;
|
|
21
|
+
};
|
|
22
|
+
Heading: {
|
|
23
|
+
tooltip: string;
|
|
24
|
+
buttons: {
|
|
25
|
+
paragraph: string;
|
|
26
|
+
heading: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
Blockquote: {
|
|
30
|
+
tooltip: string;
|
|
31
|
+
};
|
|
32
|
+
CodeBlock: {
|
|
33
|
+
tooltip: string;
|
|
34
|
+
};
|
|
35
|
+
Link: {
|
|
36
|
+
add: {
|
|
37
|
+
tooltip: string;
|
|
38
|
+
control: {
|
|
39
|
+
title: string;
|
|
40
|
+
href: string;
|
|
41
|
+
open_in_new_tab: string;
|
|
42
|
+
confirm: string;
|
|
43
|
+
cancel: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
edit: {
|
|
47
|
+
tooltip: string;
|
|
48
|
+
control: {
|
|
49
|
+
title: string;
|
|
50
|
+
href: string;
|
|
51
|
+
open_in_new_tab: string;
|
|
52
|
+
confirm: string;
|
|
53
|
+
cancel: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
unlink: {
|
|
57
|
+
tooltip: string;
|
|
58
|
+
};
|
|
59
|
+
open: {
|
|
60
|
+
tooltip: string;
|
|
61
|
+
};
|
|
62
|
+
back: {
|
|
63
|
+
tooltip: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
Subscript: {
|
|
67
|
+
tooltip: string;
|
|
68
|
+
};
|
|
69
|
+
Superscript: {
|
|
70
|
+
tooltip: string;
|
|
71
|
+
};
|
|
72
|
+
Image: {
|
|
73
|
+
buttons: {
|
|
74
|
+
insert_image: {
|
|
75
|
+
tooltip: string;
|
|
76
|
+
external: string;
|
|
77
|
+
upload: string;
|
|
78
|
+
};
|
|
79
|
+
remove_image: {
|
|
80
|
+
tooltip: string;
|
|
81
|
+
};
|
|
82
|
+
image_options: {
|
|
83
|
+
tooltip: string;
|
|
84
|
+
};
|
|
85
|
+
display: {
|
|
86
|
+
tooltip: string;
|
|
87
|
+
inline: string;
|
|
88
|
+
block: string;
|
|
89
|
+
left: string;
|
|
90
|
+
right: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
control: {
|
|
94
|
+
insert_by_url: {
|
|
95
|
+
title: string;
|
|
96
|
+
placeholder: string;
|
|
97
|
+
confirm: string;
|
|
98
|
+
cancel: string;
|
|
99
|
+
invalid_url: string;
|
|
100
|
+
};
|
|
101
|
+
upload_image: {
|
|
102
|
+
title: string;
|
|
103
|
+
button: string;
|
|
104
|
+
};
|
|
105
|
+
edit_image: {
|
|
106
|
+
title: string;
|
|
107
|
+
confirm: string;
|
|
108
|
+
cancel: string;
|
|
109
|
+
form: {
|
|
110
|
+
src: string;
|
|
111
|
+
alt: string;
|
|
112
|
+
width: string;
|
|
113
|
+
height: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
Iframe: {
|
|
119
|
+
tooltip: string;
|
|
120
|
+
control: {
|
|
121
|
+
title: string;
|
|
122
|
+
placeholder: string;
|
|
123
|
+
confirm: string;
|
|
124
|
+
cancel: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
BulletList: {
|
|
128
|
+
tooltip: string;
|
|
129
|
+
};
|
|
130
|
+
OrderedList: {
|
|
131
|
+
tooltip: string;
|
|
132
|
+
};
|
|
133
|
+
TodoList: {
|
|
134
|
+
tooltip: string;
|
|
135
|
+
};
|
|
136
|
+
TextAlign: {
|
|
137
|
+
buttons: {
|
|
138
|
+
align_left: {
|
|
139
|
+
tooltip: string;
|
|
140
|
+
};
|
|
141
|
+
align_center: {
|
|
142
|
+
tooltip: string;
|
|
143
|
+
};
|
|
144
|
+
align_right: {
|
|
145
|
+
tooltip: string;
|
|
146
|
+
};
|
|
147
|
+
align_justify: {
|
|
148
|
+
tooltip: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
FontFamily: {
|
|
153
|
+
tooltip: string;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
FontSize: {
|
|
157
|
+
tooltip: string;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
TextColor: {
|
|
161
|
+
tooltip: string;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
TextHighlight: {
|
|
165
|
+
tooltip: string;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
LineHeight: {
|
|
169
|
+
tooltip: string;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
Table: {
|
|
173
|
+
tooltip: string;
|
|
174
|
+
buttons: {
|
|
175
|
+
more: string;
|
|
176
|
+
add_column_before: string;
|
|
177
|
+
add_column_after: string;
|
|
178
|
+
delete_column: string;
|
|
179
|
+
add_row_before: string;
|
|
180
|
+
add_row_after: string;
|
|
181
|
+
delete_row: string;
|
|
182
|
+
merge_cells: string;
|
|
183
|
+
split_cell: string;
|
|
184
|
+
delete_table: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
Indent: {
|
|
188
|
+
buttons: {
|
|
189
|
+
indent: {
|
|
190
|
+
tooltip: string;
|
|
191
|
+
};
|
|
192
|
+
outdent: {
|
|
193
|
+
tooltip: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
FormatClear: {
|
|
198
|
+
tooltip: string;
|
|
199
|
+
};
|
|
200
|
+
HorizontalRule: {
|
|
201
|
+
tooltip: string;
|
|
202
|
+
};
|
|
203
|
+
History: {
|
|
204
|
+
tooltip: {
|
|
205
|
+
undo: string;
|
|
206
|
+
redo: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
Fullscreen: {
|
|
210
|
+
tooltip: {
|
|
211
|
+
fullscreen: string;
|
|
212
|
+
exit_fullscreen: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
Print: {
|
|
216
|
+
tooltip: string;
|
|
217
|
+
};
|
|
218
|
+
Preview: {
|
|
219
|
+
tooltip: string;
|
|
220
|
+
dialog: {
|
|
221
|
+
title: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
SelectAll: {
|
|
225
|
+
tooltip: string;
|
|
226
|
+
};
|
|
227
|
+
CodeView: {
|
|
228
|
+
tooltip: string;
|
|
229
|
+
};
|
|
230
|
+
Emoji: {
|
|
231
|
+
tooltip: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
characters: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={editor:{extensions:{Bold:{tooltip:"粗体"},Code:{tooltip:"行内代码"},Underline:{tooltip:"下划线"},Italic:{tooltip:"斜体"},Strike:{tooltip:"删除线"},HardBreak:{tooltip:"强制换行"},Heading:{tooltip:"标题",buttons:{paragraph:"正文",heading:"标题"}},Blockquote:{tooltip:"引用"},CodeBlock:{tooltip:"代码块"},Link:{add:{tooltip:"添加链接",control:{title:"添加链接",href:"链接",open_in_new_tab:"在新标签页中打开",confirm:"添加",cancel:"取消"}},edit:{tooltip:"编辑链接",control:{title:"编辑链接",href:"链接",open_in_new_tab:"在新标签页中打开",confirm:"更新",cancel:"取消"}},unlink:{tooltip:"取消链接"},open:{tooltip:"打开链接"},back:{tooltip:"返回"}},Subscript:{tooltip:"下标"},Superscript:{tooltip:"上标"},Image:{buttons:{insert_image:{tooltip:"插入图片",external:"插入网络图片",upload:"上传本地图片"},remove_image:{tooltip:"删除"},image_options:{tooltip:"图片属性"},display:{tooltip:"布局",inline:"内联",block:"断行",left:"左浮动",right:"右浮动"}},control:{insert_by_url:{title:"插入网络图片",placeholder:"输入链接",confirm:"插入",cancel:"取消",invalid_url:"请输入正确的图片链接"},upload_image:{title:"上传本地图片",button:"将图片文件拖到此处或者点击上传"},edit_image:{title:"编辑图片",confirm:"更新",cancel:"取消",form:{src:"图片链接",alt:"备用文本描述",width:"宽度",height:"高度"}}}},Iframe:{tooltip:"插入视频",control:{title:"插入视频",placeholder:"输入链接",confirm:"插入",cancel:"取消"}},BulletList:{tooltip:"无序列表"},OrderedList:{tooltip:"有序列表"},TodoList:{tooltip:"任务列表"},TextAlign:{buttons:{align_left:{tooltip:"左对齐"},align_center:{tooltip:"居中对齐"},align_right:{tooltip:"右对齐"},align_justify:{tooltip:"两端对齐"}}},FontFamily:{tooltip:"字体",default:"默认"},FontSize:{tooltip:"字号",default:"默认"},TextColor:{tooltip:"文本颜色",default:"默认颜色"},TextHighlight:{tooltip:"文本高亮",default:"默认颜色"},LineHeight:{tooltip:"行距",default:"默认"},Table:{tooltip:"表格",buttons:{more:"更多设置",add_column_before:"向左插入一列",add_column_after:"向右插入一列",delete_column:"删除列",add_row_before:"向上插入一行",add_row_after:"向下插入一行",delete_row:"删除行",merge_cells:"合并单元格",split_cell:"拆分单元格",delete_table:"删除表格"}},Indent:{buttons:{indent:{tooltip:"增加缩进"},outdent:{tooltip:"减少缩进"}}},FormatClear:{tooltip:"清除格式"},HorizontalRule:{tooltip:"分隔线"},History:{tooltip:{undo:"撤销",redo:"重做"}},Fullscreen:{tooltip:{fullscreen:"全屏",exit_fullscreen:"退出全屏"}},Print:{tooltip:"打印"},Preview:{tooltip:"预览",dialog:{title:"预览"}},SelectAll:{tooltip:"全选"},CodeView:{tooltip:"查看源代码"},Emoji:{tooltip:"表情"}},characters:"字数"}};export{t as default};
|