Extension Framework of AEM Guides (Get active / selected xml element) | Community
Skip to main content
BJDita
New Participant
July 4, 2025
Solved

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

  • July 4, 2025
  • 1 reply
  • 360 views

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

Best answer by BJDita

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

1 reply

BJDita
BJDitaAuthorAccepted solution
New Participant
July 4, 2025

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