vue2-bbl-editor 1.3.0
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/CHANGELOG.md +659 -0
- package/COMPONENT_USAGE_GUIDE.md +2590 -0
- package/CONTENT_WRAPPER_GUIDE.md +385 -0
- package/EXTERNAL_HTML_RENDERING.md +266 -0
- package/EXTERNAL_INTEGRATION_GUIDE.md +833 -0
- package/INSTALLATION.md +282 -0
- package/LICENSE +21 -0
- package/PACKAGE_DOCUMENTATION.md +1386 -0
- package/QUICK_SETUP.md +99 -0
- package/README.md +1694 -0
- package/dist/demo.html +10 -0
- package/dist/vue2-bbl-editor.common.js +24486 -0
- package/dist/vue2-bbl-editor.common.js.map +1 -0
- package/dist/vue2-bbl-editor.css +1 -0
- package/dist/vue2-bbl-editor.umd.js +24497 -0
- package/dist/vue2-bbl-editor.umd.js.map +1 -0
- package/dist/vue2-bbl-editor.umd.min.js +6 -0
- package/dist/vue2-bbl-editor.umd.min.js.map +1 -0
- package/package.json +172 -0
- package/types/index.d.ts +266 -0
package/QUICK_SETUP.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Quick Setup Guide
|
|
2
|
+
|
|
3
|
+
## ๐ NEW: Diagnostic Tool
|
|
4
|
+
|
|
5
|
+
If you're experiencing the "Loading Premium Editor..." issue, use our diagnostic tool first:
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<template>
|
|
9
|
+
<div>
|
|
10
|
+
<DiagnosticTool />
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
import { DiagnosticTool } from 'vue2-premium-bbl-editor'
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
components: { DiagnosticTool }
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The diagnostic tool will:
|
|
24
|
+
- โ
Check all required dependencies
|
|
25
|
+
- โ Show exactly what's missing
|
|
26
|
+
- ๐ Provide copy-paste install commands
|
|
27
|
+
- ๐งช Test the editor once dependencies are installed
|
|
28
|
+
|
|
29
|
+
## โ ๏ธ IMPORTANT: Complete Installation Required
|
|
30
|
+
|
|
31
|
+
The editor shows "Loading Premium Editor..." when dependencies are missing. You need ALL of these:
|
|
32
|
+
|
|
33
|
+
## ๐ Complete Installation (Copy & Paste)
|
|
34
|
+
|
|
35
|
+
**Step 1: Install ALL dependencies at once:**
|
|
36
|
+
```bash
|
|
37
|
+
npm install vue2-premium-bbl-editor @vue/composition-api @tiptap/core @tiptap/vue-2 @tiptap/starter-kit @tiptap/extension-text-style @tiptap/extension-color @tiptap/extension-highlight @tiptap/extension-underline @tiptap/extension-text-align @tiptap/extension-link @tiptap/extension-font-family @tiptap/extension-code @tiptap/extension-code-block @tiptap/extension-table @tiptap/extension-table-row @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-task-list @tiptap/extension-task-item @tiptap/extension-placeholder prosemirror-commands prosemirror-dropcursor prosemirror-gapcursor prosemirror-history prosemirror-keymap prosemirror-model prosemirror-schema-list prosemirror-state prosemirror-tables prosemirror-transform prosemirror-view
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Step 2: Setup main.js (REQUIRED for Vue 2.6):**
|
|
41
|
+
```javascript
|
|
42
|
+
import Vue from 'vue'
|
|
43
|
+
import VueCompositionAPI from '@vue/composition-api'
|
|
44
|
+
import PremiumBblEditor from 'vue2-premium-bbl-editor'
|
|
45
|
+
import 'vue2-premium-bbl-editor/dist/vue2-premium-bbl-editor.css'
|
|
46
|
+
import App from './App.vue'
|
|
47
|
+
|
|
48
|
+
// Required for Vue 2.6
|
|
49
|
+
Vue.use(VueCompositionAPI)
|
|
50
|
+
|
|
51
|
+
// Register the editor
|
|
52
|
+
Vue.use(PremiumBblEditor)
|
|
53
|
+
|
|
54
|
+
new Vue({
|
|
55
|
+
render: h => h(App),
|
|
56
|
+
}).$mount('#app')
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**2. Use in your component:**
|
|
60
|
+
```vue
|
|
61
|
+
<template>
|
|
62
|
+
<div>
|
|
63
|
+
<PremiumBblEditor
|
|
64
|
+
v-model="content"
|
|
65
|
+
placeholder="Start writing..."
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
export default {
|
|
72
|
+
data() {
|
|
73
|
+
return {
|
|
74
|
+
content: '<p>Hello World!</p>'
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## โ
That's it!
|
|
82
|
+
|
|
83
|
+
Your editor should now load properly without the "Loading Premium Editor..." message.
|
|
84
|
+
|
|
85
|
+
## ๐ง If Still Having Issues
|
|
86
|
+
|
|
87
|
+
1. **Use the Diagnostic Tool first** (see above)
|
|
88
|
+
|
|
89
|
+
2. **Clear node_modules and reinstall:**
|
|
90
|
+
```bash
|
|
91
|
+
rm -rf node_modules package-lock.json
|
|
92
|
+
npm install
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
3. **Check for console errors** in browser DevTools
|
|
96
|
+
|
|
97
|
+
4. **See TROUBLESHOOTING.md** for detailed solutions
|
|
98
|
+
|
|
99
|
+
5. **Create an issue:** https://github.com/Mahadi74/vue2-premium-bbl-editor/issues
|