-
I am Looking for Some DomComponents to Perform Some Actions but its in different Page How to get DomComponents on Selected Page
Any Options Like This |
Beta Was this translation helpful? Give feedback.
Answered by
artf
Jan 2, 2023
Replies: 1 comment
-
You can use const selectedPage = editor.Pages.getSelected();
const rootComponent = selectedPage.getMainComponent();
console.log(rootComponent.toHTML()); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RakulAgn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
Pages.getSelected()
andpage.getMainComponent()
API