Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Extension Framework of AEM Guides (Get active / selected xml element)

Avatar

Level 1

AEM Guide when users select a element in the current open DITA file below a breadcrumb shows the path of the selected element
my question how can i get the xpath of the selected element  or even better how to get the active (selected) element in the tcx.activeEditor.xmlDoc
I need to know which xml element is selected in the editor and bind that to the element in the tcx.activeEditor.xmlDoc

Bo, BJ Dita

1 Accepted Solution

Avatar

Correct answer by
Level 1

Found the answer on my own question
tcx.curEditor.editor.selectionXpath

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Found the answer on my own question
tcx.curEditor.editor.selectionXpath