@myissue/vue-website-page-builder 3.4.80 → 3.4.89
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 +16 -796
- package/dist/vue-website-page-builder.js +408 -419
- package/dist/vue-website-page-builder.umd.cjs +25 -25
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -6,53 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
- [Free Click \& Drop Page Builder](#free-click--drop-page-builder)
|
|
8
8
|
- [Demo](#demo)
|
|
9
|
+
- [Guide](#guide)
|
|
9
10
|
- [Overview](#overview)
|
|
10
11
|
- [Get Started in Minutes](#get-started-in-minutes)
|
|
11
12
|
- [About](#about)
|
|
12
13
|
- [Real-World Application Example](#real-world-application-example)
|
|
13
14
|
- [Reviews, Ratings, and User Testimonials](#reviews-ratings-and-user-testimonials)
|
|
14
15
|
- [Features](#features)
|
|
15
|
-
- [
|
|
16
|
-
- [Documentation](#documentation)
|
|
17
|
-
- [Requirements](#requirements)
|
|
18
|
-
- [Getting Started](#getting-started)
|
|
19
|
-
- [Installation](#installation)
|
|
20
|
-
- [Quick Start](#quick-start)
|
|
21
|
-
- [Nuxt Integration](#nuxt-integration)
|
|
22
|
-
- [1. Create a Nuxt Plugin](#1-create-a-nuxt-plugin)
|
|
23
|
-
- [2. Register the Plugin in `nuxt.config.ts`](#2-register-the-plugin-in-nuxtconfigts)
|
|
24
|
-
- [3. Using the Page Builder Component](#3-using-the-page-builder-component)
|
|
25
|
-
- [4. Why Initialize the Page Builder with `onMounted` in Nuxt?](#4-why-initialize-the-page-builder-with-onmounted-in-nuxt)
|
|
26
|
-
- [Vue Integration](#vue-integration)
|
|
27
|
-
- [1. Import and use the Page Builder Plugin](#1-import-and-use-the-page-builder-plugin)
|
|
28
|
-
- [2. Using the Page Builder Component](#2-using-the-page-builder-component)
|
|
29
|
-
- [3. Initialize Page Builder with `onMounted` Troubleshooting](#3-initialize-page-builder-with-onmounted-troubleshooting)
|
|
30
|
-
- [Why Use the Shared Instance?](#why-use-the-shared-instance)
|
|
31
|
-
- [Important: CSS Prefixing (`pbx-`)](#important-css-prefixing-pbx-)
|
|
32
|
-
- [Rendering HTML Output in Other Frameworks (React, Nuxt, etc.)](#rendering-html-output-in-other-frameworks-react-nuxt-etc)
|
|
33
|
-
- [Providing Configuration to the Page Builder](#providing-configuration-to-the-page-builder)
|
|
34
|
-
- [Comprehensive Language Support in the Page Builder](#comprehensive-language-support-in-the-page-builder)
|
|
35
|
-
- [Default language](#default-language)
|
|
36
|
-
- [Disabling the Language Dropdown](#disabling-the-language-dropdown)
|
|
37
|
-
- [Local Storage \& Auto-Save](#local-storage--auto-save)
|
|
38
|
-
- [Retrieving the Latest HTML Content for Form Submission](#retrieving-the-latest-html-content-for-form-submission)
|
|
39
|
-
- [Resetting the Builder After Successful Resource Creation or Update](#resetting-the-builder-after-successful-resource-creation-or-update)
|
|
40
|
-
- [Loading Existing Content or Components into the Page Builder](#loading-existing-content-or-components-into-the-page-builder)
|
|
41
|
-
- [Restoring Full Page Content (Global Styles \& Components)](#restoring-full-page-content-global-styles--components)
|
|
42
|
-
- [Automatic Draft Recovery](#automatic-draft-recovery)
|
|
43
|
-
- [Close Page Builder Without Saving in a Modal or Dialog](#close-page-builder-without-saving-in-a-modal-or-dialog)
|
|
44
|
-
- [Publish Changes Using the Save Button](#publish-changes-using-the-save-button)
|
|
45
|
-
- [Styling the Main Page Builder Container](#styling-the-main-page-builder-container)
|
|
46
|
-
- [Download HTML File](#download-html-file)
|
|
47
|
-
- [Custom Components](#custom-components)
|
|
48
|
-
- [Custom Media Library Component](#custom-media-library-component)
|
|
49
|
-
- [Integrate Unsplash Library](#integrate-unsplash-library)
|
|
50
|
-
- [Custom Layout Builder Component](#custom-layout-builder-component)
|
|
51
|
-
- [Troubleshooting](#troubleshooting)
|
|
52
|
-
- [1. Fonts or Icons Not Displaying](#1-fonts-or-icons-not-displaying)
|
|
53
|
-
- [2. Initialize Page Builder with `onMounted` Troubleshooting](#2-initialize-page-builder-with-onmounted-troubleshooting)
|
|
16
|
+
- [How the Page Builder Works](#how-the-page-builder-works)
|
|
54
17
|
- [Page Builder Architecture](#page-builder-architecture)
|
|
55
|
-
- [How the Page Builder Works](#how-the-page-builder-works)
|
|
56
18
|
- [Contributing](#contributing)
|
|
57
19
|
- [Security Vulnerabilities](#security-vulnerabilities)
|
|
58
20
|
- [Get in Touch for Customization or Any Questions](#get-in-touch-for-customization-or-any-questions)
|
|
@@ -74,6 +36,15 @@ Experience the power and simplicity of the Vue Website Page Builder in action, w
|
|
|
74
36
|
|
|
75
37
|
<img style="width: 100%;" src="./public/home/for_read_me/vue3_page_builder_myissue.gif" alt="Vue Website Page Builder - the editor" />
|
|
76
38
|
|
|
39
|
+
## Guide
|
|
40
|
+
|
|
41
|
+
A Page Builder designed for growth. Build your website pages with ready-made components that are fully customizable and always responsive, designed to fit every need. A powerful Page Builder for growing merchants, brands, and agencies. And it is totally free.
|
|
42
|
+
|
|
43
|
+
Find everything you need to get started, configure, and master the Vue Website Page Builder.
|
|
44
|
+
This section covers installation, requirements, quick start, advanced usage, and integration tips—so you can build and launch pages with confidence.
|
|
45
|
+
|
|
46
|
+
[Guide](https://myissue-studio.github.io/vue-website-page-builder/)
|
|
47
|
+
|
|
77
48
|
## Overview
|
|
78
49
|
|
|
79
50
|
If you're a Vue 3 developer, this builder feels right at home. It installs quickly via npm and supports full customization through props and configuration objects. You can even set specific user settings like image, name, theme, language, company logo, and autosave preferences, making it a personalized experience for every user.
|
|
@@ -172,762 +143,7 @@ The Page Builder is packed with features:
|
|
|
172
143
|
- **Scoped Styles**: To ensure clean and predictable styling, the builder uses scoped style isolation. There is no risk of style conflicts between the builder and your app.
|
|
173
144
|
- **HTML Editor**: Access and edit raw HTML directly for full customization and developer-level control.
|
|
174
145
|
|
|
175
|
-
##
|
|
176
|
-
|
|
177
|
-
- **Technologies**: This Page Builder is developed using TypeScript, Vue 3, the Composition API, Pinia, CSS, Tailwind CSS, and HTML.
|
|
178
|
-
- **Features**: Click & Drop Page Builder.
|
|
179
|
-
|
|
180
|
-
## Documentation
|
|
181
|
-
|
|
182
|
-
Find everything you need to get started, configure, and master the Vue Website Page Builder.
|
|
183
|
-
This section covers installation, requirements, quick start, advanced usage, and integration tips—so you can build and launch pages with confidence.
|
|
184
|
-
|
|
185
|
-
## Requirements
|
|
186
|
-
|
|
187
|
-
Please note that these instructions assume you have Node.js installed.
|
|
188
|
-
|
|
189
|
-
- Node.js ≥ 18.0.0
|
|
190
|
-
- Vue.js ≥ 3.0.0
|
|
191
|
-
- Modern browser with ES6+ support
|
|
192
|
-
|
|
193
|
-
## Getting Started
|
|
194
|
-
|
|
195
|
-
Make sure to install the dependencies:
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
# npm
|
|
199
|
-
npm install
|
|
200
|
-
|
|
201
|
-
# pnpm
|
|
202
|
-
pnpm install
|
|
203
|
-
|
|
204
|
-
# yarn
|
|
205
|
-
yarn install
|
|
206
|
-
|
|
207
|
-
# bun
|
|
208
|
-
bun install
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
## Installation
|
|
212
|
-
|
|
213
|
-
The web builder for stunning pages. Enables users to design and publish modern pages at any scale.
|
|
214
|
-
|
|
215
|
-
```bash
|
|
216
|
-
npm install @myissue/vue-website-page-builder
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
## Quick Start
|
|
220
|
-
|
|
221
|
-
Get up and running with the Vue Website Page Builder in just a few minutes.
|
|
222
|
-
This section walks you through the essential steps—from installation to rendering your first page—so you can start building beautiful, dynamic content right away.
|
|
223
|
-
|
|
224
|
-
## Nuxt Integration
|
|
225
|
-
|
|
226
|
-
To use `@myissue/vue-website-page-builder` in your Nuxt 3 or Nuxt 4 project, follow these steps:
|
|
227
|
-
|
|
228
|
-
> **🎉 Great news:** The Page Builder now works with Nuxt 3 and Nuxt 4.
|
|
229
|
-
> Follow the steps below to get started in your Nuxt project.
|
|
230
|
-
|
|
231
|
-
### 1. Create a Nuxt Plugin
|
|
232
|
-
|
|
233
|
-
In the root, create a file named:
|
|
234
|
-
|
|
235
|
-
```plaintext
|
|
236
|
-
plugins/page-builder.client.js
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
Add the following code:
|
|
240
|
-
|
|
241
|
-
```javascript
|
|
242
|
-
import { pageBuilder } from '@myissue/vue-website-page-builder'
|
|
243
|
-
// Import the Page Builder styles once in your application entry, not in individual components.
|
|
244
|
-
import '@myissue/vue-website-page-builder/style.css'
|
|
245
|
-
|
|
246
|
-
export default defineNuxtPlugin((nuxtApp) => {
|
|
247
|
-
nuxtApp.vueApp.use(pageBuilder)
|
|
248
|
-
})
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### 2. Register the Plugin in `nuxt.config.ts`
|
|
252
|
-
|
|
253
|
-
Make sure Nuxt knows about your new Plugin by adding it to your config:
|
|
254
|
-
|
|
255
|
-
> **Note:** If your Plugin is inside the `/plugins` folder, Nuxt will auto-register it.
|
|
256
|
-
> Adding it to `nuxt.config.ts` is optional, but improves clarity.
|
|
257
|
-
|
|
258
|
-
```typescript
|
|
259
|
-
export default defineNuxtConfig({
|
|
260
|
-
devtools: { enabled: true },
|
|
261
|
-
plugins: ['./plugins/page-builder.client.js'],
|
|
262
|
-
})
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### 3. Using the Page Builder Component
|
|
266
|
-
|
|
267
|
-
Now anywhere in your application, use the `getPageBuilder()` composable to interact with the Page Builder’s shared instance.
|
|
268
|
-
|
|
269
|
-
The Page Builder relies on browser APIs like `localStorage` and dynamic `DOM` manipulation, which are only available on the client side. Wrapping it in `<client-only>` ensures it is rendered exclusively in the browser, preventing SSR errors and guaranteeing a smooth editing experience.
|
|
270
|
-
|
|
271
|
-
You’re now ready to use the Page Builder in your Nuxt pages or components with the `getPageBuilder()` composable.
|
|
272
|
-
|
|
273
|
-
```vue
|
|
274
|
-
<script setup>
|
|
275
|
-
import { onMounted } from 'vue'
|
|
276
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
277
|
-
|
|
278
|
-
const configPageBuilder = {
|
|
279
|
-
updateOrCreate: {
|
|
280
|
-
formType: 'create',
|
|
281
|
-
formName: 'article',
|
|
282
|
-
},
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
// Initialize the Page Builder with `onMounted`
|
|
286
|
-
onMounted(async () => {
|
|
287
|
-
const pageBuilderService = getPageBuilder()
|
|
288
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
289
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
290
|
-
})
|
|
291
|
-
</script>
|
|
292
|
-
|
|
293
|
-
<template>
|
|
294
|
-
<div>
|
|
295
|
-
<client-only>
|
|
296
|
-
<PageBuilder />
|
|
297
|
-
</client-only>
|
|
298
|
-
</div>
|
|
299
|
-
</template>
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
> **Tip:**
|
|
303
|
-
> By initializing the builder inside `onMounted`, you ensure everything is ready and avoid hydration errors.
|
|
304
|
-
|
|
305
|
-
### 4. Why Initialize the Page Builder with `onMounted` in Nuxt?
|
|
306
|
-
|
|
307
|
-
In a Server-Side Rendering (SSR) framework like Nuxt, any code that depends on the browser (`DOM`, `window`, `localStorage`, etc.) should only run on the client. Using `onMounted` ensures the Page Builder initializes safely after the component is mounted, avoiding SSR errors. Many popular packages follow this pattern.
|
|
308
|
-
|
|
309
|
-
## Vue Integration
|
|
310
|
-
|
|
311
|
-
To use `@myissue/vue-website-page-builder` in your Vue project, follow these steps:
|
|
312
|
-
|
|
313
|
-
### 1. Import and use the Page Builder Plugin
|
|
314
|
-
|
|
315
|
-
Import the `pageBuilder` Plugin and register it in your application entry point (e.g., `main.ts` or `main.js`). This sets up a single, shared Page Builder instance for your entire app.
|
|
316
|
-
|
|
317
|
-
Import the CSS file once in your `main.js`, `main.ts`, or root component. This ensures proper styling and automatic icon loading. You do **not** need to import it in individual components.
|
|
318
|
-
|
|
319
|
-
```javascript
|
|
320
|
-
import { createApp } from 'vue'
|
|
321
|
-
import App from './App.vue'
|
|
322
|
-
import { pageBuilder } from '@myissue/vue-website-page-builder'
|
|
323
|
-
import '@myissue/vue-website-page-builder/style.css'
|
|
324
|
-
|
|
325
|
-
const app = createApp(App)
|
|
326
|
-
app.use(pageBuilder)
|
|
327
|
-
app.mount('#app')
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
### 2. Using the Page Builder Component
|
|
331
|
-
|
|
332
|
-
Now anywhere in your application, use the `getPageBuilder()` composable to interact with the Page Builder’s shared instance.
|
|
333
|
-
|
|
334
|
-
You’re now ready to use the Page Builder in your Vue pages or components with the `getPageBuilder()` composable.
|
|
335
|
-
|
|
336
|
-
```vue
|
|
337
|
-
<script setup>
|
|
338
|
-
import { onMounted } from 'vue'
|
|
339
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
340
|
-
|
|
341
|
-
const configPageBuilder = {
|
|
342
|
-
updateOrCreate: {
|
|
343
|
-
formType: 'create',
|
|
344
|
-
formName: 'article',
|
|
345
|
-
},
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
// Initialize the Page Builder with `onMounted`
|
|
349
|
-
onMounted(async () => {
|
|
350
|
-
const pageBuilderService = getPageBuilder()
|
|
351
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
352
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
353
|
-
})
|
|
354
|
-
</script>
|
|
355
|
-
|
|
356
|
-
<template>
|
|
357
|
-
<PageBuilder />
|
|
358
|
-
</template>
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
### 3. Initialize Page Builder with `onMounted` Troubleshooting
|
|
362
|
-
|
|
363
|
-
If you encounter issues with the component not fully mounting, you can initialize the Page Builder inside Vue's `onMounted` lifecycle hook. This ensures it runs safely after the component is mounted.
|
|
364
|
-
|
|
365
|
-
```vue
|
|
366
|
-
<script setup>
|
|
367
|
-
import { onMounted } from 'vue'
|
|
368
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
369
|
-
|
|
370
|
-
const configPageBuilder = {
|
|
371
|
-
updateOrCreate: {
|
|
372
|
-
formType: 'create',
|
|
373
|
-
formName: 'article',
|
|
374
|
-
},
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
// Initialize the Page Builder with `onMounted`
|
|
378
|
-
onMounted(async () => {
|
|
379
|
-
const pageBuilderService = getPageBuilder()
|
|
380
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
381
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
382
|
-
})
|
|
383
|
-
</script>
|
|
384
|
-
```
|
|
385
|
-
|
|
386
|
-
## Why Use the Shared Instance?
|
|
387
|
-
|
|
388
|
-
By always accessing the shared instance, you avoid creating multiple, isolated copies of the builder. This prevents data inconsistencies, synchronization issues, and unpredictable behavior. All components and modules interact with the same centralized service, ensuring that updates and state changes are reflected everywhere in your application.
|
|
389
|
-
|
|
390
|
-
> **Note:**
|
|
391
|
-
> The Page Builder is implemented as a singleton service. All page-building logic and state are managed by a single shared instance, even if you use `<PageBuilder />` in multiple places.
|
|
392
|
-
|
|
393
|
-
## Important: CSS Prefixing (`pbx-`)
|
|
394
|
-
|
|
395
|
-
All CSS classes generated or processed by the Page Builder—including Tailwind utilities and your custom classes—are automatically prefixed with `pbx-`. This ensures the builder’s styles never conflict with your app’s existing CSS or Tailwind setup.
|
|
396
|
-
This prevents global styles from leaking into the builder and vice versa, which is crucial for embedding the builder into larger apps or white-label environments.
|
|
397
|
-
|
|
398
|
-
**How does this affect you?**
|
|
399
|
-
|
|
400
|
-
When a user adds a component into the Page Builder, all classes from that component are automatically prefixed with `pbx-` (e.g., `pbx-button`, `pbx-container`) to ensure style isolation and avoid conflicts.
|
|
401
|
-
|
|
402
|
-
Tailwind installation is not required. The Page Builder ships with prefixed utility classes to ensure there are no naming conflicts. If you wish to use Tailwind in your own application, you may install and configure it as usual without interfering with the Page Builder.
|
|
403
|
-
|
|
404
|
-
> **Note:**
|
|
405
|
-
> Simply import the builder’s CSS file once in your project. All builder styles are namespaced, so there is no risk of style conflicts.
|
|
406
|
-
|
|
407
|
-
## Rendering HTML Output in Other Frameworks (React, Nuxt, etc.)
|
|
408
|
-
|
|
409
|
-
You can use the Page Builder to generate HTML and render it in any frontend framework, such as React, Nuxt, or even server-side apps.
|
|
410
|
-
|
|
411
|
-
To ensure your content is styled correctly, simply install the Page Builder package in your target project and import its CSS file. All builder and Tailwind-prefixed styles will be applied automatically.
|
|
412
|
-
|
|
413
|
-
```typescript
|
|
414
|
-
// Import the Page Builder styles once in your application entry, not in individual components.
|
|
415
|
-
import '@myissue/vue-website-page-builder/style.css'
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
This will apply all necessary styles to any HTML output from the builder, even if you render it with `dangerouslySetInnerHTML`, `v-html`, or similar methods.
|
|
419
|
-
|
|
420
|
-
**Example (React):**
|
|
421
|
-
|
|
422
|
-
```jsx
|
|
423
|
-
// Import the Page Builder styles once in your application entry, not in individual components.
|
|
424
|
-
import '@myissue/vue-website-page-builder/style.css'
|
|
425
|
-
|
|
426
|
-
function MyPage({ html }) {
|
|
427
|
-
return <div dangerouslySetInnerHTML={{ __html: html }} />
|
|
428
|
-
}
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
**Example (Nuxt/Vue):**
|
|
432
|
-
|
|
433
|
-
```vue
|
|
434
|
-
<script setup>
|
|
435
|
-
import { ref } from 'vue'
|
|
436
|
-
// Import the Page Builder styles once in your application entry, not in individual components.
|
|
437
|
-
import '@myissue/vue-website-page-builder/style.css'
|
|
438
|
-
|
|
439
|
-
const rawHtml = ref('<p>This is content from the Page Builder.</p>')
|
|
440
|
-
</script>
|
|
441
|
-
|
|
442
|
-
<template>
|
|
443
|
-
<div v-html="rawHtml"></div>
|
|
444
|
-
</template>
|
|
445
|
-
```
|
|
446
|
-
|
|
447
|
-
> **Note:**
|
|
448
|
-
> You do not need to import any Vue components if you only want to render the HTML. Just import the CSS file.
|
|
449
|
-
|
|
450
|
-
## Providing Configuration to the Page Builder
|
|
451
|
-
|
|
452
|
-
The example below demonstrates the setup to start building pages, with additional options available for customization and branding.
|
|
453
|
-
|
|
454
|
-
Your `configPageBuilder` object can include:
|
|
455
|
-
|
|
456
|
-
- **`formType` (required):**
|
|
457
|
-
Used to retrieve the correct content from local storage. Specify whether you are creating or updating a resource.
|
|
458
|
-
- **`formName` (required):**
|
|
459
|
-
The resource type (e.g., `article`, `jobPost`, `store`, etc.). This is especially useful for platforms supporting multiple resource types, allowing the builder to manage layouts and storage for each resource uniquely.
|
|
460
|
-
- **`resourceData` (optional):**
|
|
461
|
-
Prefill the builder with initial resource data (e.g., `title`, `id`).
|
|
462
|
-
- **`userForPageBuilder` (optional):**
|
|
463
|
-
Pass user information (such as `name` and `image`) to display the logged-in user’s details in the builder.
|
|
464
|
-
- **`pageBuilderLogo` (optional):**
|
|
465
|
-
Display your company logo in the builder toolbar.
|
|
466
|
-
- **`userSettings` (optional):**
|
|
467
|
-
Set user preferences such as theme, language, or auto-save.
|
|
468
|
-
- **`brandColor` (optional):**
|
|
469
|
-
Set your brand’s primary color for key UI elements (inside the `settings` config).
|
|
470
|
-
|
|
471
|
-
```vue
|
|
472
|
-
<script setup>
|
|
473
|
-
import { onMounted } from 'vue'
|
|
474
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
475
|
-
|
|
476
|
-
const configPageBuilder = {
|
|
477
|
-
updateOrCreate: {
|
|
478
|
-
formType: 'create', // Set to 'create' or 'update'
|
|
479
|
-
// Set the resource type for better local storage and multi-resource support
|
|
480
|
-
formName: 'article',
|
|
481
|
-
},
|
|
482
|
-
resourceData: {
|
|
483
|
-
title: 'Demo Article',
|
|
484
|
-
id: 1,
|
|
485
|
-
},
|
|
486
|
-
userForPageBuilder: { name: 'John Doe', image: '/jon_doe.jpg' },
|
|
487
|
-
pageBuilderLogo: {
|
|
488
|
-
src: '/logo/logo.svg',
|
|
489
|
-
},
|
|
490
|
-
userSettings: {
|
|
491
|
-
theme: 'light',
|
|
492
|
-
language: 'en',
|
|
493
|
-
autoSave: true,
|
|
494
|
-
},
|
|
495
|
-
settings: {
|
|
496
|
-
brandColor: '#DB93B0',
|
|
497
|
-
},
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
const pageBuilderService = getPageBuilder()
|
|
501
|
-
|
|
502
|
-
onMounted(async () => {
|
|
503
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
504
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
505
|
-
})
|
|
506
|
-
</script>
|
|
507
|
-
|
|
508
|
-
<template>
|
|
509
|
-
<PageBuilder />
|
|
510
|
-
</template>
|
|
511
|
-
```
|
|
512
|
-
|
|
513
|
-
## Comprehensive Language Support in the Page Builder
|
|
514
|
-
|
|
515
|
-
The Page Builder offers robust multilingual support, enabling you to reach a global audience with ease. By default, it supports the following languages, chosen for their widespread use and strong developer communities:
|
|
516
|
-
|
|
517
|
-
| Language | Code |
|
|
518
|
-
| -------------------- | ------- |
|
|
519
|
-
| English | en |
|
|
520
|
-
| Chinese (Simplified) | zh-Hans |
|
|
521
|
-
| French | fr |
|
|
522
|
-
| Japanese | ja |
|
|
523
|
-
| Russian | ru |
|
|
524
|
-
| Spanish | es |
|
|
525
|
-
| Portuguese (Brazil) | pt |
|
|
526
|
-
| German | de |
|
|
527
|
-
| Arabic | ar |
|
|
528
|
-
| Hindi | hi |
|
|
529
|
-
| Danish | da |
|
|
530
|
-
| Italian | it |
|
|
531
|
-
|
|
532
|
-
#### Default language
|
|
533
|
-
|
|
534
|
-
You can set a default language for your project:
|
|
535
|
-
|
|
536
|
-
```typescript
|
|
537
|
-
userSettings: {
|
|
538
|
-
language: {
|
|
539
|
-
default: 'en',
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
```
|
|
543
|
-
|
|
544
|
-
If you prefer to offer only a subset of these languages for users to switch between, specify them using the `enable` option.
|
|
545
|
-
|
|
546
|
-
If you do not provide the `enable` array, the Page Builder will default to showing all supported languages by default.
|
|
547
|
-
|
|
548
|
-
```typescript
|
|
549
|
-
userSettings: {
|
|
550
|
-
language: {
|
|
551
|
-
default: 'en',
|
|
552
|
-
enable: ['en', 'zh-Hans', 'fr'],
|
|
553
|
-
},
|
|
554
|
-
},
|
|
555
|
-
```
|
|
556
|
-
|
|
557
|
-
#### Disabling the Language Dropdown
|
|
558
|
-
|
|
559
|
-
If you want to completely hide the language selector from the UI (e.g., when only one language is available or you want a fixed language), simply set `disableLanguageDropdown` to `true`.
|
|
560
|
-
|
|
561
|
-
Even when the dropdown is disabled, the default language will still be applied automatically. This gives you full control over localization while keeping the interface simple for your users.
|
|
562
|
-
|
|
563
|
-
```typescript
|
|
564
|
-
userSettings: {
|
|
565
|
-
theme: 'light',
|
|
566
|
-
language: {
|
|
567
|
-
default: 'en',
|
|
568
|
-
disableLanguageDropdown: true,
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
```
|
|
572
|
-
|
|
573
|
-
This flexibility allows you to tailor the language experience to your audience’s needs.
|
|
574
|
-
|
|
575
|
-
## Local Storage & Auto-Save
|
|
576
|
-
|
|
577
|
-
The Page Builder automatically saves all changes to the browser’s local storage. Every time you add, edit, or delete a component, your progress is preserved—even if you close the browser or navigate away.
|
|
578
|
-
|
|
579
|
-
- **Auto-Save:** Changes are periodically saved as you work.
|
|
580
|
-
- **Manual Save:** Clicking the Save button also stores the current state.
|
|
581
|
-
|
|
582
|
-
## Retrieving the Latest HTML Content for Form Submission
|
|
583
|
-
|
|
584
|
-
The builder’s auto-save ensures that the data in local storage always reflects the latest state of your page. You can retrieve this data at any time for form submission, publishing, or preview.
|
|
585
|
-
|
|
586
|
-
To get the most up-to-date content, use the same `resourceData` (such as `formType` and `formName`) that was used when saving. If these values do not match, the builder may not find the expected content.
|
|
587
|
-
|
|
588
|
-
**Example:**
|
|
589
|
-
|
|
590
|
-
```typescript
|
|
591
|
-
const configPageBuilder = {
|
|
592
|
-
updateOrCreate: {
|
|
593
|
-
formType: 'create',
|
|
594
|
-
formName: 'article',
|
|
595
|
-
},
|
|
596
|
-
}
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
Call this logic when you need to submit or save the builder’s output—for example, when the user clicks “Save” or “Publish.” The code below safely retrieves and parses the latest data from local storage, handling errors and assigning the results to your form fields.
|
|
600
|
-
|
|
601
|
-
```vue
|
|
602
|
-
<script setup>
|
|
603
|
-
import { onMounted } from 'vue'
|
|
604
|
-
import { getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
605
|
-
|
|
606
|
-
const configPageBuilder = {
|
|
607
|
-
updateOrCreate: {
|
|
608
|
-
formType: 'create',
|
|
609
|
-
formName: 'article',
|
|
610
|
-
},
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
const pageBuilderService = getPageBuilder()
|
|
614
|
-
|
|
615
|
-
onMounted(async () => {
|
|
616
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
617
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
618
|
-
})
|
|
619
|
-
|
|
620
|
-
const getComponents = function () {
|
|
621
|
-
const storedComponents = pageBuilderService.getSavedPageHtml()
|
|
622
|
-
yourForm.content = storedComponents
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
// Call getComponents when needed.
|
|
626
|
-
</script>
|
|
627
|
-
```
|
|
628
|
-
|
|
629
|
-
### Resetting the Builder After Successful Resource Creation or Update
|
|
630
|
-
|
|
631
|
-
After successfully creating or updating a resource (such as a post, article, or listing) using the Page Builder, it is important to clear the `DOM` and the builder’s draft state, as well as remove the corresponding local storage entry. This ensures that old drafts do not appear the next time the builder is opened for a new or existing resource.
|
|
632
|
-
|
|
633
|
-
You can reset the Page Builder’s live `DOM`, builder state, and clear the draft with:
|
|
634
|
-
|
|
635
|
-
```typescript
|
|
636
|
-
await pageBuilderService.handleFormSubmission()
|
|
637
|
-
```
|
|
638
|
-
|
|
639
|
-
Always call this method after a successful post or resource update to ensure users start with a fresh builder the next time they create or edit a resource.
|
|
640
|
-
|
|
641
|
-
## Loading Existing Content or Components into the Page Builder
|
|
642
|
-
|
|
643
|
-
The Page Builder makes it simple to load previously published content—including both your page’s global styles and all components—from any backend source, such as your database or API.
|
|
644
|
-
|
|
645
|
-
### Restoring Full Page Content (Global Styles & Components)
|
|
646
|
-
|
|
647
|
-
If you have previously saved or published HTML content (for example, from your database), you can easily restore both the global page styles (classes, inline styles) and all builder components for seamless editing.
|
|
648
|
-
|
|
649
|
-
**Recommended Workflow:**
|
|
650
|
-
|
|
651
|
-
1. **Parse your saved HTML** using the builder’s helper method to extract both the components and the global page settings:
|
|
652
|
-
|
|
653
|
-
```typescript
|
|
654
|
-
// yourPageHTML: the full HTML string previously saved from the builder
|
|
655
|
-
const { components, pageSettings } = pageBuilderService.parsePageBuilderHTML(yourPageHTML)
|
|
656
|
-
```
|
|
657
|
-
|
|
658
|
-
2. **Pass `pageSettings` directly** in your config object, and pass the `components` array as the second argument to `startBuilder`:
|
|
659
|
-
|
|
660
|
-
```vue
|
|
661
|
-
<script setup>
|
|
662
|
-
import { onMounted } from 'vue'
|
|
663
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
664
|
-
|
|
665
|
-
// Retrieve the Page Builder service instance
|
|
666
|
-
const pageBuilderService = getPageBuilder()
|
|
667
|
-
|
|
668
|
-
// Parse your saved HTML to extract both components and global page settings
|
|
669
|
-
const { components, pageSettings } = pageBuilderService.parsePageBuilderHTML(yourPageHTML)
|
|
670
|
-
|
|
671
|
-
// Prepare the config, passing pageSettings directly
|
|
672
|
-
const configPageBuilder = {
|
|
673
|
-
updateOrCreate: {
|
|
674
|
-
formType: 'update', // important: set to update
|
|
675
|
-
formName: 'article',
|
|
676
|
-
},
|
|
677
|
-
// pass directly, not nested
|
|
678
|
-
pageSettings: pageSettings,
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
const pageBuilderService = getPageBuilder()
|
|
682
|
-
|
|
683
|
-
// Initialize the Page Builder with `onMounted`
|
|
684
|
-
onMounted(async () => {
|
|
685
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
686
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
687
|
-
})
|
|
688
|
-
</script>
|
|
689
|
-
|
|
690
|
-
<template>
|
|
691
|
-
<PageBuilder />
|
|
692
|
-
</template>
|
|
693
|
-
```
|
|
694
|
-
|
|
695
|
-
> **Note:**
|
|
696
|
-
>
|
|
697
|
-
> - Each component’s `html_code` must be wrapped in a `<section>...</section>` tag. This is how the Page Builder defines and separates individual components.
|
|
698
|
-
> - Always pass `pageSettings` directly in the config object (not as `{ pageSettings: { pageSettings } }`).
|
|
699
|
-
> - Set `formType: 'update'` to ensure the builder loads your provided content for editing.
|
|
700
|
-
|
|
701
|
-
This approach ensures your users can seamlessly restore and edit previously published content—including all global styles and layout—providing a smooth and reliable editing experience for existing pages.
|
|
702
|
-
|
|
703
|
-
## Automatic Draft Recovery
|
|
704
|
-
|
|
705
|
-
The Page Builder automatically checks for unsaved drafts in local storage for the current resource.
|
|
706
|
-
If a draft is found, users are prompted to either continue where they left off or use the version loaded from your backend.
|
|
707
|
-
|
|
708
|
-
- **`formType` (required):**
|
|
709
|
-
Determines which draft to load from local storage. Set this to either `create` or `update` in the `updateOrCreate` config, depending on your use case.
|
|
710
|
-
- **`formName` (required):**
|
|
711
|
-
Specifies the resource type (e.g., `article`, `jobPost`, `store`, etc.) in the `updateOrCreate` config. This is especially important if your platform supports multiple resource types. By providing a unique name, the Page Builder can correctly manage layouts and drafts for each resource, allowing users to pick up where they left off.
|
|
712
|
-
|
|
713
|
-
```vue
|
|
714
|
-
<script setup>
|
|
715
|
-
import { onMounted } from 'vue'
|
|
716
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
717
|
-
|
|
718
|
-
const configPageBuilder = {
|
|
719
|
-
updateOrCreate: {
|
|
720
|
-
formType: 'update',
|
|
721
|
-
formName: 'article',
|
|
722
|
-
},
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
const pageBuilderService = getPageBuilder()
|
|
726
|
-
|
|
727
|
-
// Initialize the Page Builder with `onMounted`
|
|
728
|
-
onMounted(async () => {
|
|
729
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
730
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
731
|
-
})
|
|
732
|
-
</script>
|
|
733
|
-
|
|
734
|
-
<template>
|
|
735
|
-
<PageBuilder />
|
|
736
|
-
</template>
|
|
737
|
-
```
|
|
738
|
-
|
|
739
|
-
## Close Page Builder Without Saving in a Modal or Dialog
|
|
740
|
-
|
|
741
|
-
You can easily use the Page Builder inside a modal or dialog.
|
|
742
|
-
To close the page builder without saving, or to allow users to close the modal from inside the builder, use the `showCloseButton` prop and listen for the `@handleClosePageBuilder` event:
|
|
743
|
-
|
|
744
|
-
```vue
|
|
745
|
-
<script setup>
|
|
746
|
-
import { onMounted, ref } from 'vue'
|
|
747
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
748
|
-
|
|
749
|
-
const configPageBuilder = {
|
|
750
|
-
updateOrCreate: {
|
|
751
|
-
formType: 'update',
|
|
752
|
-
formName: 'article',
|
|
753
|
-
},
|
|
754
|
-
}
|
|
755
|
-
const showModal = ref(true)
|
|
756
|
-
|
|
757
|
-
function closePageBuilder() {
|
|
758
|
-
showModal.value = false
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
const pageBuilderService = getPageBuilder()
|
|
762
|
-
|
|
763
|
-
// Initialize the Page Builder with `onMounted`
|
|
764
|
-
onMounted(async () => {
|
|
765
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
766
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
767
|
-
})
|
|
768
|
-
</script>
|
|
769
|
-
|
|
770
|
-
<template>
|
|
771
|
-
<Modal v-if="showModal" @close="showModal = false">
|
|
772
|
-
<PageBuilder :showCloseButton="true" @handleClosePageBuilder="closePageBuilder" />
|
|
773
|
-
</Modal>
|
|
774
|
-
</template>
|
|
775
|
-
```
|
|
776
|
-
|
|
777
|
-
## Publish Changes Using the Save Button
|
|
778
|
-
|
|
779
|
-
To allow users to use the Publish button from inside the builder, use the `showPublishButton` prop and listen for the `@handlePublishPageBuilder` event.
|
|
780
|
-
|
|
781
|
-
> **Note:**
|
|
782
|
-
> When the Publish button is clicked, the Page Builder will automatically save the latest changes to local storage before emitting the `@handlePublishPageBuilder` event. This ensures you always receive the most up-to-date content.
|
|
783
|
-
|
|
784
|
-
```vue
|
|
785
|
-
<script setup>
|
|
786
|
-
import { onMounted } from 'vue'
|
|
787
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
788
|
-
|
|
789
|
-
const pageBuilderService = getPageBuilder()
|
|
790
|
-
|
|
791
|
-
const handlePublish = () => {
|
|
792
|
-
// Retrieve the latest HTML content (saved by the builder)
|
|
793
|
-
const latestHtml = pageBuilderService.getSavedPageHtml()
|
|
794
|
-
// Submit, publish, or process the content as needed
|
|
795
|
-
// e.g., send latestHtml to your API or update your form
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
const pageBuilderService = getPageBuilder()
|
|
799
|
-
|
|
800
|
-
// Initialize the Page Builder with `onMounted`
|
|
801
|
-
onMounted(async () => {
|
|
802
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
803
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
804
|
-
})
|
|
805
|
-
</script>
|
|
806
|
-
|
|
807
|
-
<template>
|
|
808
|
-
<PageBuilder :showPublishButton="true" @handlePublishPageBuilder="handlePublish" />
|
|
809
|
-
</template>
|
|
810
|
-
```
|
|
811
|
-
|
|
812
|
-
- `:showPublishButton="true"` — shows a publish button in the Page Builder toolbar.
|
|
813
|
-
- `@handlePublishPageBuilder="handlePublish"` — emits after the builder auto-saves, so you always get the latest content.
|
|
814
|
-
|
|
815
|
-
> **Tip:**
|
|
816
|
-
> You can name your handler function anything you like. This pattern makes it easy to embed the builder in modals, dialogs, or overlays in any Vue app.
|
|
817
|
-
|
|
818
|
-
## Styling the Main Page Builder Container
|
|
819
|
-
|
|
820
|
-
The Page Builder allows you to define and update global styles for the main wrapper (`#pagebuilder`) at any time. These settings control the overall appearance, including font family, text color, background color, and more. Whether you set them initially in your config or update them dynamically at runtime, your changes are instantly reflected across all sections.
|
|
821
|
-
|
|
822
|
-
Use the `pageSettings` config to apply custom CSS classes and inline styles to the Page Builder’s main wrapper.
|
|
823
|
-
The Page Builder renders all components wrapped inside a single parent container, `<div id="pagebuilder">`.
|
|
824
|
-
You can pass global CSS `classes` and `style` to this wrapper by adding a `pageSettings` object in your config:
|
|
825
|
-
|
|
826
|
-
```ts
|
|
827
|
-
const configPageBuilder = {
|
|
828
|
-
// other config options...
|
|
829
|
-
|
|
830
|
-
pageSettings: {
|
|
831
|
-
classes: 'max-w-screen-lg mx-auto px-4 bg-white',
|
|
832
|
-
style: {
|
|
833
|
-
backgroundColor: 'red',
|
|
834
|
-
border: '6px solid yellow',
|
|
835
|
-
},
|
|
836
|
-
},
|
|
837
|
-
} as const
|
|
838
|
-
```
|
|
839
|
-
|
|
840
|
-
You have full control over the page’s appearance at any time—instantly override or clear global styles for the entire page, ensuring a seamless and dynamic user experience.
|
|
841
|
-
|
|
842
|
-
## Download HTML File
|
|
843
|
-
|
|
844
|
-
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.
|
|
845
|
-
|
|
846
|
-
- Images may not display correctly in the exported HTML unless their URLs are properly prefixed or fully qualified.
|
|
847
|
-
|
|
848
|
-
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.
|
|
849
|
-
|
|
850
|
-
```ts
|
|
851
|
-
const configPageBuilder = {
|
|
852
|
-
imageUrlPrefix: 'https://your-domain.com/uploads/',
|
|
853
|
-
// other config options...
|
|
854
|
-
} as const
|
|
855
|
-
```
|
|
856
|
-
|
|
857
|
-
## Custom Components
|
|
858
|
-
|
|
859
|
-
If you want to use your own components—whether custom-designed or tailored to your application's needs—you can inject them directly into the builder.
|
|
860
|
-
|
|
861
|
-
### Custom Media Library Component
|
|
862
|
-
|
|
863
|
-
By default, the Page Builder does not include a built-in media library.
|
|
864
|
-
|
|
865
|
-
This is intentional—without a custom media library, layout components that rely on images (such as Image Blocks, Hero Sections, and similar) are disabled by default. Only helper components like containers, headings, text, and buttons are available in this state.
|
|
866
|
-
|
|
867
|
-
You may extend the Page Builder by adding your own media library.
|
|
868
|
-
Inject your media library component easily to tailor the builder to your application's needs.
|
|
869
|
-
|
|
870
|
-
📚 **[Custom Components Setup Guide](./CUSTOM_COMPONENTS_SETUP.md)**
|
|
871
|
-
Learn how to create and integrate your own components step by step.
|
|
872
|
-
|
|
873
|
-
### Integrate Unsplash Library
|
|
874
|
-
|
|
875
|
-
Easily add Unsplash image search to your media library modal—just like in the demo!
|
|
876
|
-
A code example is provided so you can copy-paste to get started.
|
|
877
|
-
|
|
878
|
-
See the full step-by-step guide and working demo code here:
|
|
879
|
-
📚 **[Unsplash Integration Guide](./UNSPLASH_INTEGRATION.md)**
|
|
880
|
-
|
|
881
|
-
### Custom Layout Builder Component
|
|
882
|
-
|
|
883
|
-
The Page Builder comes with a growing collection of built-in components, including both layout and helper components. These defaults are continuously improved and expanded.
|
|
884
|
-
|
|
885
|
-
📚 **[Custom Components Setup Guide](./CUSTOM_COMPONENTS_SETUP.md)**
|
|
886
|
-
Learn how to create and integrate your own components step by step.
|
|
887
|
-
|
|
888
|
-
## Troubleshooting
|
|
889
|
-
|
|
890
|
-
### 1. Fonts or Icons Not Displaying
|
|
891
|
-
|
|
892
|
-
If fonts or Material Icons are not displaying correctly, verify that:
|
|
893
|
-
|
|
894
|
-
**CSS Import**: You are importing the CSS file:
|
|
895
|
-
|
|
896
|
-
```typescript
|
|
897
|
-
// Import the Page Builder styles once in your application entry, not in individual components.
|
|
898
|
-
import '@myissue/vue-website-page-builder/style.css'
|
|
899
|
-
```
|
|
900
|
-
|
|
901
|
-
### 2. Initialize Page Builder with `onMounted` Troubleshooting
|
|
902
|
-
|
|
903
|
-
If you encounter issues with the component not fully mounting, you can initialize the Page Builder inside Vue's `onMounted` lifecycle hook. This ensures it runs safely after the component is mounted.
|
|
904
|
-
|
|
905
|
-
```vue
|
|
906
|
-
<script setup>
|
|
907
|
-
import { onMounted } from 'vue'
|
|
908
|
-
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
909
|
-
|
|
910
|
-
const configPageBuilder = {
|
|
911
|
-
updateOrCreate: {
|
|
912
|
-
formType: 'create',
|
|
913
|
-
formName: 'article',
|
|
914
|
-
},
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
// Initialize the Page Builder with `onMounted`
|
|
918
|
-
onMounted(async () => {
|
|
919
|
-
const pageBuilderService = getPageBuilder()
|
|
920
|
-
const result = await pageBuilderService.startBuilder(configPageBuilder)
|
|
921
|
-
console.info('You may inspect this result for message, status, or error:', result)
|
|
922
|
-
})
|
|
923
|
-
</script>
|
|
924
|
-
```
|
|
925
|
-
|
|
926
|
-
## Page Builder Architecture
|
|
927
|
-
|
|
928
|
-
The Page Builder is designed as a modular, state-driven editor for dynamic page content. Its architecture separates configuration, state management, and `DOM` interaction, ensuring flexibility and maintainability.
|
|
929
|
-
|
|
930
|
-
### How the Page Builder Works
|
|
146
|
+
## How the Page Builder Works
|
|
931
147
|
|
|
932
148
|
The Page Builder is designed to be easy to use and flexible for any web project. Here’s how it works behind the scenes:
|
|
933
149
|
|
|
@@ -944,6 +160,10 @@ The Page Builder is designed to be easy to use and flexible for any web project.
|
|
|
944
160
|
**In short:**
|
|
945
161
|
The Page Builder handles all the technical details of editing, saving, and loading pages, so your users can focus on creating great content—without worrying about losing their work or dealing with a complicated setup.
|
|
946
162
|
|
|
163
|
+
## Page Builder Architecture
|
|
164
|
+
|
|
165
|
+
The Page Builder is designed as a modular, state-driven editor for dynamic page content. Its architecture separates configuration, state management, and `DOM` interaction, ensuring flexibility and maintainability.
|
|
166
|
+
|
|
947
167
|
<img style="max-width: 100%;" src="./public/home/for_read_me/page_builder_architecture.svg" alt="Vue Website Page Builder - the editor" />
|
|
948
168
|
|
|
949
169
|
## Contributing
|