Skip to main content
Solved

Create a link & HyperLinkTarget

  • November 18, 2022
  • 2 replies
  • 742 views

katsuyuki

Could anyone help me how to use a HyperlinkTarget object to put a link on a Textnode that links to an different node on that page (like a different Text, Frame, Shape,…)

I have no idea how to use the code snippet below 😕

type HyperlinkTarget = {
    type: "URL" | "NODE"
    value: string
}

Best answer by tank666

node.hyperlink = {type: "NODE", value: "0:1"}

Where 0:1 is the id of the node.

View original

2 replies

tank666
  • 4864 replies
  • Answer
  • November 18, 2022
node.hyperlink = {type: "NODE", value: "0:1"}

Where 0:1 is the id of the node.


katsuyuki
  • Author
  • 4 replies
  • November 18, 2022

Thank you very much! 🙌


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings