Skip to content

Instantly share code, notes, and snippets.

@rokinroj
rokinroj / get-active-nestedContent-element.js
Created April 3, 2023 14:58
Get Active Nested Content Element
function getActiveFeature() {
let editorScope = $scope.$parent;
do {
editorScope = editorScope.$parent;
} while (!isCurrentNode(editorScope));
this.editorScope = editorScope;
return editorScope;
}
function isCurrentNode(editorScope) {