Skip to content
Discussion options

You must be logged in to vote

As we work together, we solved this problem by looking at API reference rsrs

I noticed that editor.Canvas gets the canvas itself as a html element of the page and manage him, not the elements dropped inside him.

The solution was use editor.DomComponents that actually works with what is inside the canvas. That means the elements we are inserting to edit and create a page or something.

So using this way:

  const body =  editor.DomComponents.getElements(); // Returns wrapper's children collection
  // Once we have the collection, we can work with that as a grapes Component object (see API Reference)
  let el = body.find("SomeQueryIdentifier"); // This will find the collection of elements tha…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ronaldohoch
Comment options

Answer selected by ronaldohoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants