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/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