Sebastian Dammark
02/26/2025, 12:00 PMChancer
02/26/2025, 12:12 PMvar currentNode = editorState.getCurrent()
Then use the entityResource from the backoffice API to get all of the ancestors of that current node.
entityResource.getAncestors(currentNode.id, "Document")
.then(function(ancestors) {
// Filter for the ancestor you are looking for.
}
Chancer
02/26/2025, 12:15 PMChancer
02/26/2025, 12:21 PM