Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add PbEditorPageElementGroupPlugin Plugin #4598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 11, 2025
Merged

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Apr 11, 2025

Changes

Page element groups can now also be registered via React components.

// extensions/customPageElementsGroup/src/index.tsx
import React from "react";
import { PbEditorPageElementGroupPlugin } from "@webiny/app-page-builder";
import { ReactComponent as MyCustomPageElementsGroupIcon } from "@material-design-icons/svg/outlined/explore.svg";

export const Extension = () => {
    return (
        <>
            <PbEditorPageElementGroupPlugin
                name={"customPageElementsGroup"}
                title={"Custom Group"}
                icon={<MyCustomPageElementsGroupIcon />}
                emptyView={<div>Nothing to see here.</div>}
            />
        </>
    );
};

image

Note

A sample extension can be set up via:
yarn webiny extension page-builder/page-element-groups

How Has This Been Tested?

Manually.

Documentation

Changelog.

@Pavel910 Pavel910 added this to the 5.42.3 milestone Apr 11, 2025
@adrians5j adrians5j changed the title fix: update success and termsOfServiceMessage structures to support a… Add PbEditorPageElementGroupPlugin plugin Apr 11, 2025
@adrians5j adrians5j changed the title Add PbEditorPageElementGroupPlugin plugin Add PbEditorPageElementGroupPlugin Plugin Apr 11, 2025
@adrians5j adrians5j merged commit ef80a26 into dev Apr 11, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants