@myissue/vue-website-page-builder 3.0.20 → 3.0.21
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 +42 -0
- package/dist/vue-website-page-builder.css +1 -1
- package/dist/vue-website-page-builder.js +15 -15
- package/dist/vue-website-page-builder.umd.cjs +24 -24
- package/package.json +1 -1
- package/src/Components/Modals/DynamicModal.vue +20 -47
- package/src/Components/PageBuilder/DropdownsPlusToggles/OptionsDropdown.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +2 -2
- package/src/Components/TipTap/TipTapInput.vue +1 -1
- package/src/PageBuilder/PageBuilder.vue +1 -1
- package/src/css/app.css +6 -2
package/README.md
CHANGED
|
@@ -16,6 +16,20 @@ 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 Material Icons (no additional setup needed)
|
|
31
|
+
- ✅ Responsive design utilities
|
|
32
|
+
|
|
19
33
|
## Click & Drop Page Builder
|
|
20
34
|
|
|
21
35
|
[Play around with the page builder](https://www.builder-demo.myissue.dk)
|
|
@@ -107,6 +121,8 @@ import '@myissue/vue-website-page-builder/style.css'
|
|
|
107
121
|
</template>
|
|
108
122
|
```
|
|
109
123
|
|
|
124
|
+
> **📝 Note**: Google Material Icons are automatically loaded when you import the CSS file. No additional setup required for icons!
|
|
125
|
+
|
|
110
126
|
### Customization
|
|
111
127
|
|
|
112
128
|
Customizing the page builder is made simple since all the logic resides in the PageBuilder Class.
|
|
@@ -158,6 +174,32 @@ configuration Options
|
|
|
158
174
|
|
|
159
175
|
The logo will be displayed with a subtle border separator and proper spacing in the page builder toolbar.
|
|
160
176
|
|
|
177
|
+
## Troubleshooting
|
|
178
|
+
|
|
179
|
+
### Icons Not Displaying
|
|
180
|
+
|
|
181
|
+
If Material Icons are not displaying correctly, verify that:
|
|
182
|
+
|
|
183
|
+
1. **CSS Import**: Ensure you're importing the CSS file:
|
|
184
|
+
|
|
185
|
+
```js
|
|
186
|
+
import '@myissue/vue-website-page-builder/style.css'
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
2. **Network Access**: The package loads icons from Google Fonts CDN. Ensure your application can access:
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
3. **Content Security Policy**: If using CSP, allow Google Fonts:
|
|
196
|
+
```html
|
|
197
|
+
<meta
|
|
198
|
+
http-equiv="Content-Security-Policy"
|
|
199
|
+
content="font-src 'self' https://fonts.googleapis.com;"
|
|
200
|
+
/>
|
|
201
|
+
```
|
|
202
|
+
|
|
161
203
|
## Contributing
|
|
162
204
|
|
|
163
205
|
1. Fork the repository
|