The Elements API enables you to access elements on the canvas (the page the user is designing) from an editor add-on’s panel.
To use the Elements API, follow the setup instructions for the Editor API.