@myissue/vue-website-page-builder 3.0.20 → 3.0.22

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 CHANGED
@@ -16,6 +16,21 @@ A Vue 3 page builder component with drag & drop functionality for creating dynam
16
16
  npm install @myissue/vue-website-page-builder
17
17
  ```
18
18
 
19
+ ### Important: CSS Import Required
20
+
21
+ The page builder requires its CSS file to be imported for proper styling and automatic icon loading:
22
+
23
+ ```js
24
+ import '@myissue/vue-website-page-builder/style.css'
25
+ ```
26
+
27
+ This import automatically includes:
28
+
29
+ - ✅ Page builder styles
30
+ - ✅ Google Fonts (Jost, Cormorant - no additional setup needed)
31
+ - ✅ Google Material Icons (no additional setup needed)
32
+ - ✅ Responsive design utilities
33
+
19
34
  ## Click & Drop Page Builder
20
35
 
21
36
  [Play around with the page builder](https://www.builder-demo.myissue.dk)
@@ -107,6 +122,8 @@ import '@myissue/vue-website-page-builder/style.css'
107
122
  </template>
108
123
  ```
109
124
 
125
+ > **📝 Note**: Google Fonts (Jost, Cormorant) and Material Icons are automatically loaded when you import the CSS file. No additional setup required for fonts or icons!
126
+
110
127
  ### Customization
111
128
 
112
129
  Customizing the page builder is made simple since all the logic resides in the PageBuilder Class.
@@ -158,6 +175,34 @@ configuration Options
158
175
 
159
176
  The logo will be displayed with a subtle border separator and proper spacing in the page builder toolbar.
160
177
 
178
+ ## Troubleshooting
179
+
180
+ ### Fonts or Icons Not Displaying
181
+
182
+ If fonts (Jost, Cormorant) or Material Icons are not displaying correctly, verify that:
183
+
184
+ 1. **CSS Import**: Ensure you're importing the CSS file:
185
+
186
+ ```js
187
+ import '@myissue/vue-website-page-builder/style.css'
188
+ ```
189
+
190
+ 2. **Network Access**: The package loads fonts and icons from Google Fonts CDN. Ensure your application can access:
191
+
192
+ ```
193
+ https://fonts.googleapis.com/css2?family=Jost:*
194
+ https://fonts.googleapis.com/css2?family=Cormorant:*
195
+ https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined
196
+ ```
197
+
198
+ 3. **Content Security Policy**: If using CSP, allow Google Fonts:
199
+ ```html
200
+ <meta
201
+ http-equiv="Content-Security-Policy"
202
+ content="font-src 'self' https://fonts.googleapis.com;"
203
+ />
204
+ ```
205
+
161
206
  ## Contributing
162
207
 
163
208
  1. Fork the repository