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, install the @wix/editor
package using npm or Yarn:
or
Then import the elements
module from @wix/editor
: