tiptapify 0.0.8 → 0.0.10
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 +25 -2
- package/dist/tiptapify.css +1 -1
- package/dist/tiptapify.mjs +26215 -22992
- package/dist/tiptapify.umd.js +39 -39
- package/index.d.ts +49 -0
- package/package.json +10 -8
- package/src/components/Footer.vue +48 -6
- package/src/components/Tiptapify.vue +37 -29
- package/src/components/Toolbar/Group.vue +13 -14
- package/src/components/Toolbar/GroupBtn.vue +30 -0
- package/src/components/Toolbar/GroupDropdown.vue +4 -8
- package/src/components/Toolbar/Index.vue +26 -77
- package/src/components/Toolbar/Items.vue +77 -0
- package/src/components/Toolbar/defaultExtensionComponents.ts +32 -0
- package/src/components/Toolbar/items/format.ts +7 -20
- package/src/components/Toolbar/items/formatExtra.ts +1 -1
- package/src/components/Toolbar/items/media.ts +1 -1
- package/src/components/Toolbar/items/misc.ts +1 -1
- package/src/components/Toolbar/items/style.ts +60 -2
- package/src/components/Toolbar/items.ts +6 -4
- package/src/components/UI/Dialog.vue +141 -0
- package/src/components/editorExtensions.ts +3 -7
- package/src/extensions/components/ImageDialog.vue +17 -29
- package/src/extensions/components/LinkDialog.vue +58 -43
- package/src/extensions/components/PreviewDialog.vue +8 -16
- package/src/extensions/components/ShowSourceDialog.vue +14 -16
- package/src/extensions/components/StyleColor.vue +230 -0
- package/src/extensions/components/TableBuilder.vue +4 -8
- package/src/i18n/locales/ch.json +118 -0
- package/src/i18n/locales/cz.json +118 -0
- package/src/i18n/locales/de.json +90 -72
- package/src/i18n/locales/en.json +89 -71
- package/src/i18n/locales/es.json +90 -72
- package/src/i18n/locales/fr.json +91 -72
- package/src/i18n/locales/it.json +90 -72
- package/src/i18n/locales/la.json +118 -0
- package/src/i18n/locales/lt.json +118 -0
- package/src/i18n/locales/nl.json +118 -0
- package/src/i18n/locales/pl.json +90 -72
- package/src/i18n/locales/pt.json +118 -0
- package/src/i18n/locales/ru.json +85 -67
- package/src/i18n/locales/se.json +118 -0
- package/src/i18n/locales/ua.json +86 -68
- package/src/types/overridable-extensions.ts +6 -0
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
- Bubble Menu
|
|
18
18
|
- Floating Menu
|
|
19
19
|
- Slash Command
|
|
20
|
+
- Dark theme
|
|
20
21
|
|
|
21
22
|
## Installation
|
|
22
23
|
Install package
|
|
@@ -65,6 +66,28 @@ app.use(TiptapifyPlugin, { locale: 'en' });
|
|
|
65
66
|
app.mount('#app')
|
|
66
67
|
```
|
|
67
68
|
|
|
69
|
+
## Usage
|
|
70
|
+
|
|
71
|
+
```vue
|
|
72
|
+
<script setup>
|
|
73
|
+
const handleEditorReady = (options: { editor: any, getHTML: Function, getJSON: Function, echo: Function }) => {
|
|
74
|
+
console.log('The editor is ready', options.editor);
|
|
75
|
+
console.log('editor html', options.getHTML());
|
|
76
|
+
console.log('editor json', options.getJSON());
|
|
77
|
+
};
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<template>
|
|
81
|
+
<Tiptapify
|
|
82
|
+
:content="content"
|
|
83
|
+
:bubble-menu="true"
|
|
84
|
+
:floating-menu="false"
|
|
85
|
+
:slash-commands="true"
|
|
86
|
+
@editor-ready="handleEditorReady"
|
|
87
|
+
/>
|
|
88
|
+
</template>
|
|
89
|
+
```
|
|
90
|
+
|
|
68
91
|
|
|
69
92
|
### TODO
|
|
70
93
|
|
|
@@ -74,7 +97,8 @@ app.mount('#app')
|
|
|
74
97
|
- [x] tables extension
|
|
75
98
|
- [x] preview extension
|
|
76
99
|
- [x] image extension
|
|
77
|
-
- [
|
|
100
|
+
- [x] text styling (background & font color)
|
|
101
|
+
- [x] dark theme
|
|
78
102
|
- [ ] print hotkey in tooltip
|
|
79
103
|
- [ ] video extensions
|
|
80
104
|
- [ ] emoji plugin
|
|
@@ -82,7 +106,6 @@ app.mount('#app')
|
|
|
82
106
|
- [ ] option to provide custom extension
|
|
83
107
|
- [ ] demo
|
|
84
108
|
- [ ] documentation
|
|
85
|
-
- [ ] dark theme
|
|
86
109
|
- [ ] AI features
|
|
87
110
|
|
|
88
111
|
## Licence
|