Sebastian Dammark
02/26/2025, 12:00 PMTom Chance
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.
}
Tom Chance
02/26/2025, 12:15 PMTom Chance
02/26/2025, 12:21 PM