• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Once I have identified a note what code do I need to jump to the note's anchor?

Community Beginner ,
Feb 15, 2017 Feb 15, 2017

Copy link to clipboard

Copied

I'm trying to replicate the Go to Anchor button on the Notes pallette

The code I have tried is

try
{
note.insertionPoints[0].showText();
}
catch(e)
{
alert("Could not display the note anchor");
}

though I have some variantions on this too.

TOPICS
Scripting

Views

143

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 15, 2017 Feb 15, 2017

Hi Dave,

perhaps you mean this:

note.storyOffset.showText();

storyOffset is an insertionPoint.

This would show the insertion point before the note, if the the note is not in overset text.

If you want to show more, you have to select the character that constitutes the note and invoke the Notes panel.

Or the Story Window.

Regards,
Uwe

Votes

Translate

Translate
Community Expert ,
Feb 15, 2017 Feb 15, 2017

Copy link to clipboard

Copied

LATEST

Hi Dave,

perhaps you mean this:

note.storyOffset.showText();

storyOffset is an insertionPoint.

This would show the insertion point before the note, if the the note is not in overset text.

If you want to show more, you have to select the character that constitutes the note and invoke the Notes panel.

Or the Story Window.

Regards,
Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines