@myissue/vue-website-page-builder 3.3.56 → 3.3.57
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 +39 -2
- package/dist/home/page_builder_architecture.png +0 -0
- package/dist/vue-website-page-builder.css +1 -1
- package/dist/vue-website-page-builder.js +3651 -3453
- package/dist/vue-website-page-builder.umd.cjs +37 -37
- package/package.json +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +22 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +1 -3
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +23 -1
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +101 -20
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +1 -1
- package/src/DemoComponents/HomeSection.vue +9 -1
- package/src/PageBuilder/PageBuilder.vue +3 -3
- package/src/PageBuilder/Preview.vue +4 -6
- package/src/composables/PageBuilderService.ts +167 -147
- package/src/composables/extractCleanHTMLFromPageBuilder.ts +58 -0
- package/src/css/app.css +7 -0
- package/src/types/index.ts +8 -1
package/README.md
CHANGED
|
@@ -482,12 +482,49 @@ function closePageBuilder() {
|
|
|
482
482
|
> You can name your handler function anything you like.
|
|
483
483
|
> This pattern makes it easy to embed the builder in modals, dialogs, or overlays in any Vue app.
|
|
484
484
|
|
|
485
|
+
### Page Wrapper Styles
|
|
486
|
+
|
|
487
|
+
Use the `pageSettings` config to apply custom CSS classes and inline styles to the Page Builder’s main wrapper.
|
|
488
|
+
The Page Builder renders all components wrapped inside a single parent container `<div id="pagebuilder">`.
|
|
489
|
+
You can pass global CSS ``classes` and `style` to this wrapper by adding a `pageSettings` object in your config:
|
|
490
|
+
|
|
491
|
+
```ts
|
|
492
|
+
const configPageBuilder = {
|
|
493
|
+
// other config options...
|
|
494
|
+
|
|
495
|
+
pageSettings: {
|
|
496
|
+
classes: 'max-w-screen-lg mx-auto px-4 bg-white',
|
|
497
|
+
style: {
|
|
498
|
+
backgroundColor: 'red',
|
|
499
|
+
border: '6px solid yellow',
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
} as const
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### Download HTML file
|
|
506
|
+
|
|
507
|
+
Export the entire page as a standalone HTML file. This includes all sections, content, and applied styles, making the file ready for use or integration elsewhere.
|
|
508
|
+
|
|
509
|
+
- Images may not display correctly in the exported HTML unless their URLs are properly prefixed or fully qualified.
|
|
510
|
+
|
|
511
|
+
To ensure images render properly after export, you must specify a URL prefix in your Page Builder configuration. This prefix will be prepended to all relative image URLs during the export process.
|
|
512
|
+
|
|
513
|
+
```ts
|
|
514
|
+
const configPageBuilder = {
|
|
515
|
+
pageSettings: {
|
|
516
|
+
imageUrlPrefix: 'https://your-domain.com/uploads/',
|
|
517
|
+
},
|
|
518
|
+
// other config options...
|
|
519
|
+
} as const
|
|
520
|
+
```
|
|
521
|
+
|
|
485
522
|
### Custom Media Library Component or Custom Layout Builder Component
|
|
486
523
|
|
|
487
|
-
You may extend the Page Builder by adding your own media library or custom layout builder Component.
|
|
524
|
+
You may extend the Page Builder by adding your own media library or custom layout builder Component.
|
|
488
525
|
Inject your components easily to tailor the builder to your application's needs.
|
|
489
526
|
|
|
490
|
-
📚 **[Custom Components Setup Guide](./CUSTOM_COMPONENTS_SETUP.md)**
|
|
527
|
+
📚 **[Custom Components Setup Guide](./CUSTOM_COMPONENTS_SETUP.md)**
|
|
491
528
|
Learn how to create and integrate your own components step by step.
|
|
492
529
|
|
|
493
530
|
## Troubleshooting
|
|
Binary file
|