0.0.2 • Published 2 years ago

@swapnilmmane/pb-iframe v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Register plugin in the Admin Area application.

Add the dependency at @swapnilmmane/pb-iframe in project root's package.json

Let's make the following changes in apps/admin/code/src/plugins/pageBuilder/editorPlugins.ts file:

(...)

// Import the `iframe` element and it's settings
import iframeElement, { iframeSettings } from "@swapnilmmane/pb-iframe/admin";

export default [
    iframeElement(),
    iframeSettings,
    // Rest of the plugins
    (...)
];

Also in apps/admin/code/src/plugins/pageBuilder/renderPlugins.ts file:

(...)

// Import the `iframe` element
import iframeElement from "@swapnilmmane/pb-iframe/render";

export default [
    // Elements
    iframeElement(),
    // Rest of the plugins
    (...)
];

In the Website application, simply register plugin by making the following changes in the apps/website/code/src/plugins/pageBuilder.ts file:

// Some code is removed for the sake of brevity.
(...)

// Import `iframe` element
import iframeElement from "@swapnilmmane/pb-iframe/render";

export default [
    (...)
    // Page elements
    iframeElement(),
    (...)
];
0.0.2

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago