2 Replies Latest reply on Jul 6, 2015 4:45 AM by Frederick Yocum

    Resources on how to walk the DOM in InDesign?

    Frederick Yocum

      I am working on a script in which I want to move out from the insertion point or a cluster of selected characters to select the word where the selection occurs. The parent object in this instance is Story or Cell, not Word. How do I figure out what word the selection is in?


      This made me realize I have no idea how InsertionPoint, Character, Word, Text, Line, Paragraph are related to one another or how to move outwards (or inwards) when trying to expand or contract from a selection to a particular object in the document.


      Any pointers to schemas or diagrams or even explanations as to how these InDesign objects fit together and how to navigate them when the selection is either contained by or contains the object you want to act on?