How to use the @webiny/app-page-builder/editor/selectors.getElement function in @webiny/app-page-builder

To help you get started, we’ve selected a few @webiny/app-page-builder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elements / column / Column.js View on Github external
                element: { ...element, elements: element.elements.map(id => getElement(state, id)) }
            };
github webiny / webiny-js / packages / app-page-builder / src / editor / components / ConnectedSlate.js View on Github external
(state, props) => ({
        value: get(getElement(state, props.elementId), "data.text")
    }),
    null,
github webiny / webiny-js / packages / app-typeform / src / admin / TypeFormEmbed.js View on Github external
export default connect((state, props) => ({
    element: getElement(state, props.elementId)
}))(TypeFormEmbed);
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elements / text / Text.js View on Github external
(state, props) => ({
            element: getElement(state, props.elementId)
        }),
        { updateElement }
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elements / image / ImageContainer.js View on Github external
(state, { elementId }) => {
            const element = getElement(state, elementId);
            const { image = {}, settings = {} } = element.data;

            return {
                element: { id: element.id, type: element.type, path: element.path },
                image,
                horizontalAlign: settings.horizontalAlign || "center"
            };
        },
        { updateElement },
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elements / row / RowContainer.js View on Github external
                element: { ...element, elements: element.elements.map(id => getElement(state, id)) }
            };
github webiny / webiny-js / packages / app-page-builder / src / editor / components / Element.js View on Github external
(state, props) => {
            return {
                ...getElementProps(state, props),
                element: getElement(state, props.id)
            };
        },
        { dragStart, dragEnd, activateElement, highlightElement },
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elements / spacer / SpacerContainer.js View on Github external
        (state, props) => ({ element: getElement(state, props.elementId) }),
        { updateElement, resizeStart, resizeStop }

@webiny/app-page-builder

[![](https://img.shields.io/npm/dw/@webiny/app-page-builder.svg)](https://www.npmjs.com/package/@webiny/app-page-builder) [![](https://img.shields.io/npm/v/@webiny/app-page-builder.svg)](https://www.npmjs.com/package/@webiny/app-page-builder) [![code sty

MIT
Latest version published 2 days ago

Package Health Score

80 / 100
Full package analysis

Similar packages