-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Thank you. You can run javascript code after the editor loads the page from here Or you can run code after the iframe is loaded with To dynamically add components or sections after the editor has finished loading you can call the usual Then you will need to call If you want to create new select input you can check the current select input implementation from |
Beta Was this translation helpful? Give feedback.
Hi
Thank you.
You want to create new components or add custom js scripts in the page after is already loaded?
You can run javascript code after the editor loads the page from here
https://github.com/givanz/VvvebJs/blob/master/editor.html#L1708
Or you can run code after the iframe is loaded with
Vvveb.Builder.documentFrame.on("load", function(e) { });
To dynamically add components or sections after the editor has finished loading you can call the usual
Vvveb.Components.add()
https://github.com/givanz/VvvebJs/wiki/ComponentsThen you will need to call
Vvveb.Builder.loadControlGroups()
to reload the components after adding your components.For sections and blocks you need to call
Vvveb.Buil…