Skip to content

Instantly share code, notes, and snippets.

@grefel
Last active August 29, 2015 14:07
Show Gist options
  • Save grefel/c3934933abdaea03e49e to your computer and use it in GitHub Desktop.
Save grefel/c3934933abdaea03e49e to your computer and use it in GitHub Desktop.
Anchor is in overset text or XML #indesignjs
// Based on Marc Autret Idea http://www.indiscripts.com/post/2011/10/how-to-detect-a-ghost-item
var isGhost = (frame.parent instanceof Character) && (!frame.parent.parentTextFrames.length || frame.parent.parent instanceof XmlStory);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment