tiptapify 0.0.10 → 0.0.12
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 +7 -3
- package/dist/tiptapify.css +1 -1
- package/dist/tiptapify.mjs +18524 -17801
- package/dist/tiptapify.umd.js +77 -38
- package/index.d.ts +2 -2
- package/package.json +41 -40
- package/src/components/MenuBubble.vue +8 -8
- package/src/components/Tiptapify.vue +5 -6
- package/src/components/Toolbar/Group.vue +2 -2
- package/src/components/Toolbar/GroupBtn.vue +12 -9
- package/src/components/Toolbar/GroupDropdown.vue +5 -19
- package/src/components/Toolbar/Index.vue +13 -9
- package/src/components/Toolbar/Items.vue +5 -8
- package/src/components/Toolbar/Toggle.vue +3 -5
- package/src/components/Toolbar/defaultExtensionComponents.ts +34 -13
- package/src/components/Toolbar/items.ts +53 -70
- package/src/components/UI/BtnIcon.vue +24 -0
- package/src/components/UI/{Dialog.vue → TiptapifyDialog.vue} +4 -3
- package/src/components/editorExtensions.ts +17 -2
- package/src/components/index.ts +8 -2
- package/src/composables/Toolbar/Actions/useRedo.ts +23 -0
- package/src/composables/Toolbar/Actions/useUndo.ts +23 -0
- package/src/composables/Toolbar/Alignment/useAlignmentCenter.ts +24 -0
- package/src/composables/Toolbar/Alignment/useAlignmentJustify.ts +24 -0
- package/src/composables/Toolbar/Alignment/useAlignmentLeft.ts +24 -0
- package/src/composables/Toolbar/Alignment/useAlignmentRight.ts +24 -0
- package/src/composables/Toolbar/Format/useBold.ts +24 -0
- package/src/composables/Toolbar/Format/useItalic.ts +24 -0
- package/src/composables/Toolbar/Format/useStrike.ts +24 -0
- package/src/composables/Toolbar/Format/useUnderline.ts +24 -0
- package/src/composables/Toolbar/FormatExtra/useBlockquote.ts +24 -0
- package/src/composables/Toolbar/FormatExtra/useCode.ts +24 -0
- package/src/composables/Toolbar/FormatExtra/useCodeBlock.ts +24 -0
- package/src/composables/Toolbar/FormatExtra/useSub.ts +24 -0
- package/src/composables/Toolbar/FormatExtra/useSup.ts +24 -0
- package/src/composables/Toolbar/List/useBullet.ts +23 -0
- package/src/composables/Toolbar/List/useIndent.ts +24 -0
- package/src/composables/Toolbar/List/useNumbered.ts +23 -0
- package/src/composables/Toolbar/List/useOutdent.ts +24 -0
- package/src/composables/Toolbar/List/useTask.ts +23 -0
- package/src/composables/Toolbar/Media/useImage.ts +24 -0
- package/src/composables/Toolbar/Media/useLink.ts +24 -0
- package/src/composables/Toolbar/Media/useTable.ts +188 -0
- package/src/composables/Toolbar/Misc/useBreak.ts +21 -0
- package/src/composables/Toolbar/Misc/useFormatClear.ts +23 -0
- package/src/composables/Toolbar/Misc/useInvisibleCharacters.ts +23 -0
- package/src/composables/Toolbar/Misc/useLine.ts +21 -0
- package/src/composables/Toolbar/Misc/usePreview.ts +20 -0
- package/src/composables/Toolbar/Misc/useSource.ts +21 -0
- package/src/composables/Toolbar/Style/useColor.ts +36 -0
- package/src/composables/Toolbar/Style/useFontFamily.ts +49 -0
- package/src/composables/Toolbar/Style/useFontSize.ts +50 -0
- package/src/composables/Toolbar/Style/useHeading.ts +64 -0
- package/src/composables/Toolbar/Style/useHighlight.ts +36 -0
- package/src/composables/Toolbar/Style/useLineHeight.ts +49 -0
- package/src/composables/Toolbar/useActionsItems.ts +9 -0
- package/src/composables/Toolbar/useAlignmentItems.ts +13 -0
- package/src/composables/Toolbar/useFormatExtraItems.ts +15 -0
- package/src/composables/Toolbar/useFormatItems.ts +13 -0
- package/src/composables/Toolbar/useListItems.ts +15 -0
- package/src/composables/Toolbar/useMediaItems.ts +11 -0
- package/src/composables/Toolbar/useMiscItems.ts +17 -0
- package/src/composables/Toolbar/useStyleItems.ts +17 -0
- package/src/{components/Toolbar/fonts.ts → constants/style.ts} +21 -0
- package/src/extensions/components/FontFamily.vue +82 -0
- package/src/extensions/components/FontSize.vue +83 -0
- package/src/extensions/components/ImageDialog.vue +7 -3
- package/src/extensions/components/LineHeight.vue +82 -0
- package/src/extensions/components/LinkDialog.vue +27 -7
- package/src/extensions/components/PreviewDialog.vue +11 -4
- package/src/extensions/components/ShowSourceDialog.vue +10 -6
- package/src/extensions/components/StyleColor.vue +2 -2
- package/src/extensions/components/slashCommands/CommandsList.vue +1 -4
- package/src/extensions/image.ts +2 -1
- package/src/extensions/link.ts +10 -1
- package/src/extensions/preview.ts +2 -1
- package/src/extensions/slash-commands.ts +1 -1
- package/src/extensions/view-source.ts +2 -1
- package/src/i18n/locales/ch.json +84 -82
- package/src/i18n/locales/cz.json +32 -30
- package/src/i18n/locales/de.json +28 -26
- package/src/i18n/locales/en.json +3 -1
- package/src/i18n/locales/es.json +30 -28
- package/src/i18n/locales/fr.json +30 -28
- package/src/i18n/locales/it.json +32 -30
- package/src/i18n/locales/la.json +61 -59
- package/src/i18n/locales/lt.json +38 -36
- package/src/i18n/locales/nl.json +31 -29
- package/src/i18n/locales/pl.json +32 -30
- package/src/i18n/locales/pt.json +29 -27
- package/src/i18n/locales/ru.json +3 -1
- package/src/i18n/locales/se.json +30 -28
- package/src/i18n/locales/ua.json +3 -1
- package/src/index.ts +3 -1
- package/src/types/extensionComponents.ts +22 -0
- package/src/types/toolbarItems.ts +43 -0
- package/src/types/toolbarSections.ts +11 -0
- package/src/components/Toolbar/items/actions.ts +0 -32
- package/src/components/Toolbar/items/alignment.ts +0 -60
- package/src/components/Toolbar/items/format.ts +0 -60
- package/src/components/Toolbar/items/formatExtra.ts +0 -73
- package/src/components/Toolbar/items/list.ts +0 -70
- package/src/components/Toolbar/items/media.ts +0 -211
- package/src/components/Toolbar/items/misc.ts +0 -59
- package/src/components/Toolbar/items/style.ts +0 -204
- package/src/types/overridable-extensions.ts +0 -6
- /package/src/{components → extensions/components}/CodeBlockComponent.vue +0 -0
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { Editor } from "@tiptap/vue-3";
|
|
3
|
+
import TiptapifyDialog from "@tiptapify/components/UI/TiptapifyDialog.vue";
|
|
4
|
+
import { ref, onMounted, onUnmounted, inject, Ref } from 'vue'
|
|
4
5
|
|
|
5
6
|
const content = ref()
|
|
6
7
|
|
|
8
|
+
const editor = inject('tiptapifyEditor') as Ref<Editor>
|
|
9
|
+
|
|
7
10
|
const dialog = ref(null)
|
|
8
11
|
|
|
9
12
|
const showDialog = (event: CustomEvent) => {
|
|
13
|
+
if (event.detail.editorId !== editor.value.instanceId) {
|
|
14
|
+
return
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
content.value = event.detail.html
|
|
11
18
|
|
|
12
19
|
dialog.value.open()
|
|
@@ -22,13 +29,13 @@ onUnmounted(() => {
|
|
|
22
29
|
</script>
|
|
23
30
|
|
|
24
31
|
<template>
|
|
25
|
-
<
|
|
32
|
+
<TiptapifyDialog ref="dialog" module="preview" fullscreen>
|
|
26
33
|
<template #content>
|
|
27
34
|
<VCardItem>
|
|
28
35
|
<div class="tiptap" v-html="content"></div>
|
|
29
36
|
</VCardItem>
|
|
30
37
|
</template>
|
|
31
|
-
</
|
|
38
|
+
</TiptapifyDialog>
|
|
32
39
|
</template>
|
|
33
40
|
|
|
34
41
|
<style lang="scss">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { Editor } from "@tiptap/vue-3";
|
|
3
|
-
import
|
|
3
|
+
import TiptapifyDialog from "@tiptapify/components/UI/TiptapifyDialog.vue";
|
|
4
4
|
import { ref, onMounted, onUnmounted, watch, inject, Ref } from 'vue'
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
|
|
@@ -19,9 +19,9 @@ const formatted = ref(false)
|
|
|
19
19
|
const sourceCode = ref('')
|
|
20
20
|
|
|
21
21
|
const formatHtml = (html: string): string => {
|
|
22
|
+
const singleTags = ['img', 'hr', 'br', 'input']
|
|
22
23
|
let formatted = html.replace(/>/g, '>\n');
|
|
23
24
|
|
|
24
|
-
formatted = formatted.replace(/\n</g, '\n<');
|
|
25
25
|
formatted = formatted.replace(/([^>\n])</g, '$1\n<');
|
|
26
26
|
|
|
27
27
|
const lines = formatted.split('\n');
|
|
@@ -35,7 +35,8 @@ const formatHtml = (html: string): string => {
|
|
|
35
35
|
|
|
36
36
|
const indentedLine = ' '.repeat(indentLevel * props.indent) + line;
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
const tag = line.match(/<\/?(\S+).*>/) ?? []
|
|
39
|
+
if (!singleTags.includes(tag[1] ?? '') && line.match(/<[^\/][^>]*>/) && !line.match(/<.*\/>/)) {
|
|
39
40
|
indentLevel++;
|
|
40
41
|
}
|
|
41
42
|
|
|
@@ -53,6 +54,9 @@ const unformatHtml = (html: string): string => {
|
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
const showDialog = (event: CustomEvent) => {
|
|
57
|
+
if (event.detail.editorId !== editor.value.instanceId) {
|
|
58
|
+
return
|
|
59
|
+
}
|
|
56
60
|
sourceCode.value = event.detail.html
|
|
57
61
|
|
|
58
62
|
dialog.value.open()
|
|
@@ -78,7 +82,7 @@ watch(() => formatted.value, () => {
|
|
|
78
82
|
</script>
|
|
79
83
|
|
|
80
84
|
<template>
|
|
81
|
-
<
|
|
85
|
+
<TiptapifyDialog ref="dialog" module="source" :max-width="1500">
|
|
82
86
|
<template #content>
|
|
83
87
|
<VCardText>
|
|
84
88
|
<VContainer fluid class="pt-0 pl-0 pr-0">
|
|
@@ -104,7 +108,7 @@ watch(() => formatted.value, () => {
|
|
|
104
108
|
<template #actions>
|
|
105
109
|
<VCardActions>
|
|
106
110
|
<VSpacer></VSpacer>
|
|
107
|
-
<VBtn :variant="variantBtn" @click="dialog
|
|
111
|
+
<VBtn :variant="variantBtn" @click="dialog.close()">
|
|
108
112
|
{{ t('dialog.close') }}
|
|
109
113
|
</VBtn>
|
|
110
114
|
<VBtn :variant="variantBtn" color="primary" @click="saveChanges">
|
|
@@ -112,7 +116,7 @@ watch(() => formatted.value, () => {
|
|
|
112
116
|
</VBtn>
|
|
113
117
|
</VCardActions>
|
|
114
118
|
</template>
|
|
115
|
-
</
|
|
119
|
+
</TiptapifyDialog>
|
|
116
120
|
</template>
|
|
117
121
|
|
|
118
122
|
<style scoped lang="scss">
|
|
@@ -170,7 +170,7 @@ function isColorActive(color: string): boolean {
|
|
|
170
170
|
|
|
171
171
|
<VMenu v-model="colorPicker" :close-on-content-click="false">
|
|
172
172
|
<template #activator="{ props: menuProps }">
|
|
173
|
-
<VBtn v-bind="menuProps" variant="flat" block>
|
|
173
|
+
<VBtn v-bind="menuProps" color="default" variant="flat" block>
|
|
174
174
|
<template #prepend>
|
|
175
175
|
<div
|
|
176
176
|
class="tiptapify-style-color-picker"
|
|
@@ -198,7 +198,7 @@ function isColorActive(color: string): boolean {
|
|
|
198
198
|
|
|
199
199
|
<VDivider class="mt-2 mb-2" />
|
|
200
200
|
|
|
201
|
-
<VBtn @click="unsetColor" block variant="flat">
|
|
201
|
+
<VBtn @click="unsetColor" color="default" block variant="flat">
|
|
202
202
|
{{ t('style.color.unset') }}
|
|
203
203
|
</VBtn>
|
|
204
204
|
</VSheet>
|
|
@@ -77,10 +77,7 @@ defineExpose({
|
|
|
77
77
|
@click="selectItem(index)"
|
|
78
78
|
size="small"
|
|
79
79
|
>
|
|
80
|
-
<VIcon
|
|
81
|
-
<span v-else>
|
|
82
|
-
{{ item.title }}
|
|
83
|
-
</span>
|
|
80
|
+
<VIcon :icon="`mdiSvg:${mdi[`mdi${item.icon}`]}` || `mdiSvg:${mdi.mdiImageBrokenVariant}`" size="16" />
|
|
84
81
|
</VBtn>
|
|
85
82
|
</template>
|
|
86
83
|
<div class="item" v-else>No result</div>
|
package/src/extensions/image.ts
CHANGED
|
@@ -18,7 +18,8 @@ export const TiptapifyImage = Extension.create({
|
|
|
18
18
|
showTiptapifyImage: () => ({ editor }) => {
|
|
19
19
|
const event = new CustomEvent(`tiptapify-show-${name}`, {
|
|
20
20
|
detail: {
|
|
21
|
-
image: editor.getAttributes('image')
|
|
21
|
+
image: editor.getAttributes('image'),
|
|
22
|
+
editorId: editor.instanceId
|
|
22
23
|
}
|
|
23
24
|
})
|
|
24
25
|
|
package/src/extensions/link.ts
CHANGED
|
@@ -2,6 +2,14 @@ import Link from "@tiptap/extension-link";
|
|
|
2
2
|
|
|
3
3
|
const name: string = 'link'
|
|
4
4
|
|
|
5
|
+
declare module '@tiptap/core' {
|
|
6
|
+
interface Commands<ReturnType> {
|
|
7
|
+
link: {
|
|
8
|
+
showLink: () => ReturnType
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
export const TiptapifyLink = Link.extend({
|
|
6
14
|
name,
|
|
7
15
|
|
|
@@ -11,7 +19,8 @@ export const TiptapifyLink = Link.extend({
|
|
|
11
19
|
showLink: () => ({ editor }) => {
|
|
12
20
|
const event = new CustomEvent(`tiptapify-show-${name}`, {
|
|
13
21
|
detail: {
|
|
14
|
-
link: editor.getAttributes('link')
|
|
22
|
+
link: editor.getAttributes('link'),
|
|
23
|
+
editorId: editor.instanceId
|
|
15
24
|
}
|
|
16
25
|
})
|
|
17
26
|
|
|
@@ -27,7 +27,8 @@ export const ViewSource = Extension.create<ViewSourceOptions>({
|
|
|
27
27
|
showSource: () => ({ editor }) => {
|
|
28
28
|
const event = new CustomEvent('tiptapify-show-source', {
|
|
29
29
|
detail: {
|
|
30
|
-
html: editor.getHTML()
|
|
30
|
+
html: editor.getHTML(),
|
|
31
|
+
editorId: editor.instanceId
|
|
31
32
|
}
|
|
32
33
|
})
|
|
33
34
|
|
package/src/i18n/locales/ch.json
CHANGED
|
@@ -1,118 +1,120 @@
|
|
|
1
1
|
{
|
|
2
|
+
"defaultValue": "默认值",
|
|
2
3
|
"content": {
|
|
3
|
-
"placeholder": "
|
|
4
|
+
"placeholder": "写点什么..."
|
|
4
5
|
},
|
|
5
6
|
"style": {
|
|
6
|
-
"paragraph": "
|
|
7
|
-
"heading": "
|
|
7
|
+
"paragraph": "段落",
|
|
8
|
+
"heading": "标题",
|
|
8
9
|
"headings": {
|
|
9
|
-
"h1": "
|
|
10
|
-
"h2": "
|
|
11
|
-
"h3": "
|
|
12
|
-
"h4": "
|
|
13
|
-
"h5": "
|
|
14
|
-
"h6": "
|
|
10
|
+
"h1": "1级标题",
|
|
11
|
+
"h2": "2级标题",
|
|
12
|
+
"h3": "3级标题",
|
|
13
|
+
"h4": "4级标题",
|
|
14
|
+
"h5": "5级标题",
|
|
15
|
+
"h6": "6级标题"
|
|
15
16
|
},
|
|
16
|
-
"fontFamily": "
|
|
17
|
-
"fontSize": "
|
|
18
|
-
"lineHeight": "
|
|
17
|
+
"fontFamily": "字体",
|
|
18
|
+
"fontSize": "大小",
|
|
19
|
+
"lineHeight": "行高",
|
|
19
20
|
"color": {
|
|
20
|
-
"highlight": "
|
|
21
|
-
"text": "
|
|
22
|
-
"unset": "
|
|
23
|
-
"custom": "
|
|
21
|
+
"highlight": "高亮颜色",
|
|
22
|
+
"text": "文本颜色",
|
|
23
|
+
"unset": "清除颜色",
|
|
24
|
+
"custom": "自定义选择"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"format": {
|
|
27
|
-
"bold": "
|
|
28
|
-
"italic": "
|
|
29
|
-
"strike": "
|
|
30
|
-
"underline": "
|
|
31
|
-
"sup": "
|
|
32
|
-
"sub": "
|
|
33
|
-
"break": "
|
|
34
|
-
"line": "
|
|
35
|
-
"blockquote": "
|
|
36
|
-
"code": "
|
|
37
|
-
"codeblock": "
|
|
38
|
-
"formatClear": "
|
|
28
|
+
"bold": "粗体",
|
|
29
|
+
"italic": "斜体",
|
|
30
|
+
"strike": "删除线",
|
|
31
|
+
"underline": "下划线",
|
|
32
|
+
"sup": "上标",
|
|
33
|
+
"sub": "下标",
|
|
34
|
+
"break": "换行",
|
|
35
|
+
"line": "水平线",
|
|
36
|
+
"blockquote": "引用",
|
|
37
|
+
"code": "代码",
|
|
38
|
+
"codeblock": "代码块",
|
|
39
|
+
"formatClear": "清除格式"
|
|
39
40
|
},
|
|
40
41
|
"media": {
|
|
41
|
-
"link": "
|
|
42
|
-
"image": "
|
|
42
|
+
"link": "外部链接",
|
|
43
|
+
"image": "图片",
|
|
43
44
|
"tables": {
|
|
44
|
-
"table": "
|
|
45
|
-
"insertTable": "
|
|
46
|
-
"deleteTable": "
|
|
47
|
-
"insertWithHeaderRow": "
|
|
48
|
-
"rows": "
|
|
49
|
-
"row": "
|
|
50
|
-
"insertRowBefore": "
|
|
51
|
-
"insertRowAfter": "
|
|
52
|
-
"deleteRow": "
|
|
53
|
-
"cols": "
|
|
54
|
-
"col": "
|
|
55
|
-
"insertColBefore": "
|
|
56
|
-
"insertColAfter": "
|
|
57
|
-
"deleteCol": "
|
|
58
|
-
"mergeCells": "
|
|
59
|
-
"splitCell": "
|
|
45
|
+
"table": "表格",
|
|
46
|
+
"insertTable": "插入表格",
|
|
47
|
+
"deleteTable": "删除表格",
|
|
48
|
+
"insertWithHeaderRow": "插入带标题的表格",
|
|
49
|
+
"rows": "行",
|
|
50
|
+
"row": "行",
|
|
51
|
+
"insertRowBefore": "在前面插入行",
|
|
52
|
+
"insertRowAfter": "在后面插入行",
|
|
53
|
+
"deleteRow": "删除行",
|
|
54
|
+
"cols": "列",
|
|
55
|
+
"col": "列",
|
|
56
|
+
"insertColBefore": "在前面插入列",
|
|
57
|
+
"insertColAfter": "在后面插入列",
|
|
58
|
+
"deleteCol": "删除列",
|
|
59
|
+
"mergeCells": "合并单元格",
|
|
60
|
+
"splitCell": "拆分单元格"
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"action": {
|
|
63
|
-
"undo": "
|
|
64
|
-
"redo": "
|
|
64
|
+
"undo": "撤销",
|
|
65
|
+
"redo": "重做"
|
|
65
66
|
},
|
|
66
|
-
"alignment": "
|
|
67
|
+
"alignment": "对齐",
|
|
67
68
|
"alignments": {
|
|
68
|
-
"left": "
|
|
69
|
-
"center": "
|
|
70
|
-
"right": "
|
|
71
|
-
"justify": "
|
|
69
|
+
"left": "左对齐",
|
|
70
|
+
"center": "居中对齐",
|
|
71
|
+
"right": "右对齐",
|
|
72
|
+
"justify": "两端对齐"
|
|
72
73
|
},
|
|
73
|
-
"list": "
|
|
74
|
+
"list": "列表",
|
|
74
75
|
"lists": {
|
|
75
|
-
"bullet": "
|
|
76
|
-
"numbered": "
|
|
77
|
-
"task": "
|
|
78
|
-
"indent": "
|
|
79
|
-
"outdent": "
|
|
76
|
+
"bullet": "无序列表",
|
|
77
|
+
"numbered": "有序列表",
|
|
78
|
+
"task": "任务列表",
|
|
79
|
+
"indent": "增加列表项缩进",
|
|
80
|
+
"outdent": "减少列表项缩进"
|
|
80
81
|
},
|
|
81
82
|
"dialog": {
|
|
82
|
-
"apply": "
|
|
83
|
-
"clear": "
|
|
84
|
-
"close": "
|
|
83
|
+
"apply": "应用",
|
|
84
|
+
"clear": "清除",
|
|
85
|
+
"close": "关闭",
|
|
85
86
|
"image": {
|
|
86
|
-
"title": "
|
|
87
|
-
"src": "
|
|
88
|
-
"alt": "
|
|
89
|
-
"width": "
|
|
90
|
-
"height": "
|
|
87
|
+
"title": "添加/修改图片",
|
|
88
|
+
"src": "源",
|
|
89
|
+
"alt": "替代文本",
|
|
90
|
+
"width": "宽度",
|
|
91
|
+
"height": "高度"
|
|
91
92
|
},
|
|
92
93
|
"link": {
|
|
93
|
-
"title": "
|
|
94
|
-
"href": "
|
|
95
|
-
"href_error": "
|
|
96
|
-
"target": "
|
|
97
|
-
"target_blank": "
|
|
98
|
-
"target_self": "
|
|
99
|
-
"rel": "
|
|
100
|
-
"class": "CSS
|
|
94
|
+
"title": "添加/修改链接",
|
|
95
|
+
"href": "链接地址",
|
|
96
|
+
"href_error": "无效的链接地址",
|
|
97
|
+
"target": "打开方式...",
|
|
98
|
+
"target_blank": "新窗口",
|
|
99
|
+
"target_self": "当前窗口",
|
|
100
|
+
"rel": "rel",
|
|
101
|
+
"class": "CSS类"
|
|
101
102
|
},
|
|
102
103
|
"preview": {
|
|
103
|
-
"title": "
|
|
104
|
+
"title": "预览"
|
|
104
105
|
},
|
|
105
106
|
"source": {
|
|
106
|
-
"title": "
|
|
107
|
-
"prettify": "
|
|
107
|
+
"title": "查看源代码",
|
|
108
|
+
"prettify": "美化"
|
|
108
109
|
}
|
|
109
110
|
},
|
|
110
111
|
"misc": {
|
|
111
|
-
"source": "
|
|
112
|
-
"preview": "
|
|
112
|
+
"source": "查看源代码",
|
|
113
|
+
"preview": "预览",
|
|
114
|
+
"toggleInvisibleCharacters": "显示/隐藏不可见字符"
|
|
113
115
|
},
|
|
114
116
|
"footer": {
|
|
115
|
-
"words": "
|
|
116
|
-
"chars": "
|
|
117
|
+
"words": "单词",
|
|
118
|
+
"chars": "字符"
|
|
117
119
|
}
|
|
118
120
|
}
|
package/src/i18n/locales/cz.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
+
"defaultValue": "Výchozí hodnota",
|
|
2
3
|
"content": {
|
|
3
|
-
"placeholder": "Napište něco
|
|
4
|
+
"placeholder": "Napište něco..."
|
|
4
5
|
},
|
|
5
6
|
"style": {
|
|
6
|
-
"paragraph": "
|
|
7
|
+
"paragraph": "odstavec",
|
|
7
8
|
"heading": "Nadpis",
|
|
8
9
|
"headings": {
|
|
9
|
-
"h1": "Nadpis
|
|
10
|
-
"h2": "Nadpis
|
|
11
|
-
"h3": "Nadpis
|
|
12
|
-
"h4": "Nadpis
|
|
13
|
-
"h5": "Nadpis
|
|
14
|
-
"h6": "Nadpis
|
|
10
|
+
"h1": "Nadpis 1. úrovně",
|
|
11
|
+
"h2": "Nadpis 2. úrovně",
|
|
12
|
+
"h3": "Nadpis 3. úrovně",
|
|
13
|
+
"h4": "Nadpis 4. úrovně",
|
|
14
|
+
"h5": "Nadpis 5. úrovně",
|
|
15
|
+
"h6": "Nadpis 6. úrovně"
|
|
15
16
|
},
|
|
16
|
-
"fontFamily": "
|
|
17
|
-
"fontSize": "Velikost
|
|
17
|
+
"fontFamily": "Písmo",
|
|
18
|
+
"fontSize": "Velikost",
|
|
18
19
|
"lineHeight": "Výška řádku",
|
|
19
20
|
"color": {
|
|
20
21
|
"highlight": "Barva zvýraznění",
|
|
21
22
|
"text": "Barva textu",
|
|
22
|
-
"unset": "
|
|
23
|
-
"custom": "Vlastní
|
|
23
|
+
"unset": "Vymazat barvu",
|
|
24
|
+
"custom": "Vlastní výběr"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"format": {
|
|
@@ -30,9 +31,9 @@
|
|
|
30
31
|
"underline": "Podtržené",
|
|
31
32
|
"sup": "Horní index",
|
|
32
33
|
"sub": "Dolní index",
|
|
33
|
-
"break": "
|
|
34
|
-
"line": "
|
|
35
|
-
"blockquote": "
|
|
34
|
+
"break": "Zalomení řádku",
|
|
35
|
+
"line": "Horizontální čára",
|
|
36
|
+
"blockquote": "Citát",
|
|
36
37
|
"code": "Kód",
|
|
37
38
|
"codeblock": "Blok kódu",
|
|
38
39
|
"formatClear": "Vymazat formátování"
|
|
@@ -65,38 +66,38 @@
|
|
|
65
66
|
},
|
|
66
67
|
"alignment": "Zarovnání",
|
|
67
68
|
"alignments": {
|
|
68
|
-
"left": "
|
|
69
|
-
"center": "
|
|
70
|
-
"right": "
|
|
71
|
-
"justify": "
|
|
69
|
+
"left": "Zarovnání vlevo",
|
|
70
|
+
"center": "Zarovnání na střed",
|
|
71
|
+
"right": "Zarovnání vpravo",
|
|
72
|
+
"justify": "Zarovnání do bloku"
|
|
72
73
|
},
|
|
73
74
|
"list": "Seznam",
|
|
74
75
|
"lists": {
|
|
75
|
-
"bullet": "
|
|
76
|
+
"bullet": "Odrážkový seznam",
|
|
76
77
|
"numbered": "Číslovaný seznam",
|
|
77
78
|
"task": "Seznam úkolů",
|
|
78
|
-
"indent": "
|
|
79
|
-
"outdent": "
|
|
79
|
+
"indent": "Zvětšit odsazení položky seznamu",
|
|
80
|
+
"outdent": "Zmenšit odsazení položky seznamu"
|
|
80
81
|
},
|
|
81
82
|
"dialog": {
|
|
82
83
|
"apply": "Použít",
|
|
83
84
|
"clear": "Vymazat",
|
|
84
85
|
"close": "Zavřít",
|
|
85
86
|
"image": {
|
|
86
|
-
"title": "
|
|
87
|
+
"title": "Přidání/úprava obrázku",
|
|
87
88
|
"src": "Zdroj",
|
|
88
|
-
"alt": "
|
|
89
|
+
"alt": "alt",
|
|
89
90
|
"width": "Šířka",
|
|
90
91
|
"height": "Výška"
|
|
91
92
|
},
|
|
92
93
|
"link": {
|
|
93
|
-
"title": "
|
|
94
|
+
"title": "Přidání/úprava odkazu",
|
|
94
95
|
"href": "Adresa odkazu",
|
|
95
96
|
"href_error": "Neplatná adresa odkazu",
|
|
96
97
|
"target": "Otevřít v...",
|
|
97
|
-
"target_blank": "
|
|
98
|
-
"target_self": "
|
|
99
|
-
"rel": "
|
|
98
|
+
"target_blank": "Novém okně",
|
|
99
|
+
"target_self": "Aktuálním okně",
|
|
100
|
+
"rel": "rel",
|
|
100
101
|
"class": "CSS třída"
|
|
101
102
|
},
|
|
102
103
|
"preview": {
|
|
@@ -104,12 +105,13 @@
|
|
|
104
105
|
},
|
|
105
106
|
"source": {
|
|
106
107
|
"title": "Zobrazit zdrojový kód",
|
|
107
|
-
"prettify": "
|
|
108
|
+
"prettify": "prettify"
|
|
108
109
|
}
|
|
109
110
|
},
|
|
110
111
|
"misc": {
|
|
111
112
|
"source": "Zobrazit zdrojový kód",
|
|
112
|
-
"preview": "Náhled"
|
|
113
|
+
"preview": "Náhled",
|
|
114
|
+
"toggleInvisibleCharacters": "Zobrazit/skrýt neviditelné znaky"
|
|
113
115
|
},
|
|
114
116
|
"footer": {
|
|
115
117
|
"words": "slova",
|
package/src/i18n/locales/de.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
+
"defaultValue": "Standardwert",
|
|
2
3
|
"content": {
|
|
3
|
-
"placeholder": "Schreiben Sie
|
|
4
|
+
"placeholder": "Schreiben Sie etwas..."
|
|
4
5
|
},
|
|
5
6
|
"style": {
|
|
6
7
|
"paragraph": "Absatz",
|
|
7
8
|
"heading": "Überschrift",
|
|
8
9
|
"headings": {
|
|
9
|
-
"h1": "Überschrift Ebene
|
|
10
|
-
"h2": "Überschrift Ebene
|
|
11
|
-
"h3": "Überschrift Ebene
|
|
12
|
-
"h4": "Überschrift Ebene
|
|
13
|
-
"h5": "Überschrift Ebene
|
|
14
|
-
"h6": "Überschrift Ebene
|
|
10
|
+
"h1": "Überschrift 1. Ebene",
|
|
11
|
+
"h2": "Überschrift 2. Ebene",
|
|
12
|
+
"h3": "Überschrift 3. Ebene",
|
|
13
|
+
"h4": "Überschrift 4. Ebene",
|
|
14
|
+
"h5": "Überschrift 5. Ebene",
|
|
15
|
+
"h6": "Überschrift 6. Ebene"
|
|
15
16
|
},
|
|
16
17
|
"fontFamily": "Schriftart",
|
|
17
|
-
"fontSize": "
|
|
18
|
+
"fontSize": "Größe",
|
|
18
19
|
"lineHeight": "Zeilenhöhe",
|
|
19
20
|
"color": {
|
|
20
|
-
"highlight": "
|
|
21
|
+
"highlight": "Hervorhebungsfarbe",
|
|
21
22
|
"text": "Textfarbe",
|
|
22
|
-
"unset": "Farbe
|
|
23
|
-
"custom": "
|
|
23
|
+
"unset": "Farbe löschen",
|
|
24
|
+
"custom": "Eigene Auswahl"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"format": {
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"underline": "Unterstrichen",
|
|
31
32
|
"sup": "Hochgestellt",
|
|
32
33
|
"sub": "Tiefgestellt",
|
|
33
|
-
"break": "
|
|
34
|
+
"break": "Zeilenumbruch",
|
|
34
35
|
"line": "Horizontale Linie",
|
|
35
36
|
"blockquote": "Zitat",
|
|
36
37
|
"code": "Code",
|
|
@@ -65,38 +66,38 @@
|
|
|
65
66
|
},
|
|
66
67
|
"alignment": "Ausrichtung",
|
|
67
68
|
"alignments": {
|
|
68
|
-
"left": "
|
|
69
|
-
"center": "Zentriert
|
|
70
|
-
"right": "
|
|
69
|
+
"left": "Linksbündig",
|
|
70
|
+
"center": "Zentriert",
|
|
71
|
+
"right": "Rechtsbündig",
|
|
71
72
|
"justify": "Blocksatz"
|
|
72
73
|
},
|
|
73
74
|
"list": "Liste",
|
|
74
75
|
"lists": {
|
|
75
|
-
"bullet": "
|
|
76
|
+
"bullet": "Aufzählung",
|
|
76
77
|
"numbered": "Nummerierte Liste",
|
|
77
78
|
"task": "Aufgabenliste",
|
|
78
|
-
"indent": "
|
|
79
|
-
"outdent": "
|
|
79
|
+
"indent": "Einzug vergrößern",
|
|
80
|
+
"outdent": "Einzug verkleinern"
|
|
80
81
|
},
|
|
81
82
|
"dialog": {
|
|
82
83
|
"apply": "Anwenden",
|
|
83
84
|
"clear": "Löschen",
|
|
84
85
|
"close": "Schließen",
|
|
85
86
|
"image": {
|
|
86
|
-
"title": "Bild hinzufügen
|
|
87
|
+
"title": "Bild hinzufügen/ändern",
|
|
87
88
|
"src": "Quelle",
|
|
88
|
-
"alt": "
|
|
89
|
+
"alt": "alt",
|
|
89
90
|
"width": "Breite",
|
|
90
91
|
"height": "Höhe"
|
|
91
92
|
},
|
|
92
93
|
"link": {
|
|
93
|
-
"title": "Link hinzufügen
|
|
94
|
+
"title": "Link hinzufügen/ändern",
|
|
94
95
|
"href": "Link-Adresse",
|
|
95
96
|
"href_error": "Ungültige Link-Adresse",
|
|
96
97
|
"target": "Öffnen in...",
|
|
97
|
-
"target_blank": "
|
|
98
|
-
"target_self": "
|
|
99
|
-
"rel": "
|
|
98
|
+
"target_blank": "Neuem Fenster",
|
|
99
|
+
"target_self": "Aktuellem Fenster",
|
|
100
|
+
"rel": "rel",
|
|
100
101
|
"class": "CSS-Klasse"
|
|
101
102
|
},
|
|
102
103
|
"preview": {
|
|
@@ -104,12 +105,13 @@
|
|
|
104
105
|
},
|
|
105
106
|
"source": {
|
|
106
107
|
"title": "Quellcode anzeigen",
|
|
107
|
-
"prettify": "
|
|
108
|
+
"prettify": "prettify"
|
|
108
109
|
}
|
|
109
110
|
},
|
|
110
111
|
"misc": {
|
|
111
112
|
"source": "Quellcode anzeigen",
|
|
112
|
-
"preview": "Vorschau"
|
|
113
|
+
"preview": "Vorschau",
|
|
114
|
+
"toggleInvisibleCharacters": "Unsichtbare Zeichen anzeigen/ausblenden"
|
|
113
115
|
},
|
|
114
116
|
"footer": {
|
|
115
117
|
"words": "Wörter",
|
package/src/i18n/locales/en.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"defaultValue": "Default value",
|
|
2
3
|
"content": {
|
|
3
4
|
"placeholder": "Write something here..."
|
|
4
5
|
},
|
|
@@ -109,7 +110,8 @@
|
|
|
109
110
|
},
|
|
110
111
|
"misc": {
|
|
111
112
|
"source": "View source code",
|
|
112
|
-
"preview": "Preview"
|
|
113
|
+
"preview": "Preview",
|
|
114
|
+
"toggleInvisibleCharacters": "Show/hide invisible characters"
|
|
113
115
|
},
|
|
114
116
|
"footer": {
|
|
115
117
|
"words": "words",
|