Skip to content

Commit 548ca1b

Browse files
committed
Merge branch 'MC-19863' into MC-16152
2 parents 8fb91cf + b24fd27 commit 548ca1b

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderWYSIWYGSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@
4646
<section name="MediaGallerySection">
4747
<!-- This goes in CE repo -->
4848
<element name="StorageRootArrowClicked" type="button" selector="#root > a.jstree-clicked"/>
49+
<element name="currentSelectedDirectory" type="button" selector="a.jstree-clicked"/>
4950
</section>
5051
</sections>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderBannerCommonTest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,9 +1948,6 @@
19481948
<group value="pagebuilder-image"/>
19491949
<group value="pagebuilder-banner"/>
19501950
<group value="pagebuilder-bannerCommon"/>
1951-
<skip>
1952-
<issueId value="MC-19863"/>
1953-
</skip>
19541951
</annotations>
19551952
<before>
19561953
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
@@ -2006,6 +2003,8 @@
20062003
<actionGroup ref="clickSelectFromGallerySlideOut" stepKey="clickSelectFromGallerySlideOut">
20072004
<argument name="property" value="PageBuilderBackgroundImage_JPG"/>
20082005
</actionGroup>
2006+
<click selector="{{MediaGallerySection.currentSelectedDirectory}}" stepKey="refreshFolder"/>
2007+
<waitForPageLoad stepKey="waitForRefresh"/>
20092008
<actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage3">
20102009
<argument name="Image" value="PageBuilderBackgroundImage_JPG"/>
20112010
</actionGroup>

docs/getting-started/install-pagebuilder-examples.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ The [Example directory](https://github.com/magento-devdocs/pagebuilder-examples/
2020

2121
- **[PageBuilderExtensionBanner](https://github.com/magento-devdocs/pagebuilder-examples/tree/master/Example/PageBuilderExtensionBanner)** — This Banner extension module shows the basic pattern for customizing existing content types using appearances.
2222

23+
## Additional extension modules
24+
25+
- **[PageBuilderLazyLoading](https://github.com/magento-devdocs/pagebuilder-examples/tree/master/Example/PageBuilderLazyLoading)** — This module shows how to add lazy loading behavior to the Image content type. For this example, we use the [lazysizes](https://github.com/aFarkas/lazysizes) loader. Created by @bruce on [#pagebuilder](https://app.slack.com/client/T4YUW69CM/CHB455HPF).
26+
- **[DeactivatingPageBuilder](https://github.com/magento-devdocs/pagebuilder-examples/tree/master/Example/DeactivatingPageBuilder)** — This example module shows you how to disable Page Builder for a particular page in Magento, specifically Pages, Blocks, and Dynamic Blocks. Created by @bruce on [#pagebuilder](https://app.slack.com/client/T4YUW69CM/CHB455HPF).
27+
- **[PageBuilderExtensionBaseForms](https://github.com/magento-devdocs/pagebuilder-examples/tree/master/Example/PageBuilderExtensionBaseForms)** — This module shows you how to remove fields and fieldsets from Page Builder's built-in forms. Created by @bruce on [#pagebuilder](https://app.slack.com/client/T4YUW69CM/CHB455HPF).
28+
- **[PageBuilderExtensionText](https://github.com/magento-devdocs/pagebuilder-examples/tree/master/Example/PageBuilderExtensionText)** — This module shows you how to customize the Page Builder's Text toolbar, integrate your own theme's typography, and add TinyMCE's `code` plugin to the toolbar so you can view the HTML code directly. Created by @bruce on [#pagebuilder](https://app.slack.com/client/T4YUW69CM/CHB455HPF).
29+
- **[PageBuilderExtensionSlider](https://github.com/magento-devdocs/pagebuilder-examples/tree/master/Example/PageBuilderExtensionSlider)** — This module shows you how to add `centerMode` and `centerPadding` settings from the [slick carousel](https://kenwheeler.github.io/slick/) used by the Slider. Create by @bruce on [#pagebuilder](https://app.slack.com/client/T4YUW69CM/CHB455HPF).
30+
2331
## Example code for how-to topics
2432

2533
**In Progress**. The how-to directories in the repo correspond to the how-to topics in this documentation. Each how-to directory provides the files and code changes featured in the how-to topics.
@@ -28,7 +36,7 @@ For example, the topic [How to add a custom toolbar](../how-to/how-to-add-custom
2836

2937
## Installation
3038

31-
Assuming you have Page Builder 1.0.0 already installed, you can install the example modules as follows:
39+
Assuming you have Page Builder already installed, you can install the example modules as follows:
3240

3341
1. Clone the pagebuilder-examples repo:
3442

docs/reference/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ For example:
130130

131131
Page Builder stores data for content types in a simple object called the DataStore: `Magento_PageBuilder/js/data-store`.
132132

133-
The name parameter from the [content type configuration](configurations.md) (or storage_key if specified) is the name of a parameter in the DataStore. You can use the subscribe method to listen for changes in the DataStore and perform custom actions like updating the UI.
133+
The `name` parameter from the [content type configuration](configurations.md) (or `storage_key` if specified) is the name of a parameter in the DataStore. You can use the `subscribe` method to listen for changes in the `DataStore` and perform custom actions like updating the UI.
134134

135135
This is how the system binds the data from the DataStore to your elements attribute or style. When you include a new attribute or style, you must specify where it should retrieve its data from the content type. These `name` values normally bind to the field names within UI component forms. The field names are the keys we use to save the data.
136136

docs/reference/data-store.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,25 @@ dataStore.subscribe(() => {
2626

2727
## API
2828

29-
#### `get(key: string, defaultValue?: any): any`
29+
### `get(key: string, defaultValue?: any): any`
3030

3131
Retrieve a single value from the content type's data store based on its key. You can provide an optional default value if no data is present.
3232

33-
#### `getState(): object`
33+
### `getState(): object`
3434

3535
Get the entire state object for the current content type instance.
3636

37-
#### `set(key: string, value: any): void`
37+
### `set(key: string, value: any): void`
3838

3939
Set a single piece of data into the content type's data store.
4040

41-
#### `setState(): void`
41+
### `setState(): void`
4242

4343
Set the entire state for the current content type.
4444

4545
## Usage
4646

47-
You can use the data store to modify your content type when its data changes. For example, the Page Builder native [Tabs content type](magento2-page-builder/app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/tabs/preview.ts) subscribes to the data store and makes updates to it when a tab-item changes, as show here in TypeScript:
47+
You can use the data store to modify your content type when its data changes. For example, the Page Builder native Tabs content type (magento2-page-builder/app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/tabs/preview.ts) subscribes to the data store and makes updates to it when a tab-item changes, as show here in TypeScript:
4848

4949
```typescript
5050
...

0 commit comments

Comments
 (0)