@myissue/vue-website-page-builder 3.3.70 → 3.3.72

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
@@ -167,21 +167,19 @@ This section walks you through the essential steps—from installation to render
167
167
 
168
168
  To get started with the Page Builder, follow these steps:
169
169
 
170
- - **Call `initPageBuilder()` once** in your application entry point (e.g., `main.ts` or `main.js`). This sets up the shared builder instance for your entire app.
170
+ - **Use the Page Builder plugin** in your application entry point (e.g., `main.ts` or `main.js`). This sets up the shared builder instance for your entire app.
171
171
  - **Access the shared builder instance** anywhere in your application using the `getPageBuilder()` composable.
172
172
  - **Import the CSS file once** in your `main.js`, `main.ts`, or root component to ensure proper styling and automatic icon loading.
173
173
 
174
174
  ```typescript
175
175
  import { createApp } from 'vue'
176
176
  import App from './App.vue'
177
- import { initPageBuilder } from '@myissue/vue-website-page-builder'
177
+ import { pageBuilder } from '@myissue/vue-website-page-builder'
178
178
  import '@myissue/vue-website-page-builder/style.css'
179
179
 
180
- // Initialize the shared Page Builder instance
181
- // This must be called once in your app entry point
182
- initPageBuilder()
183
-
180
+ // Use the Page Builder plugin
184
181
  const app = createApp(App)
182
+ app.use(pageBuilder)
185
183
  app.mount('#app')
186
184
  ```
187
185