Skip to main content
August 30, 2009
Question

How to apply link to formatted text?

  • August 30, 2009
  • 1 reply
  • 711 views

I am trying to do it, but there is no effect!

Help, please!

This topic has been closed for replies.

1 reply

Adobe Employee
September 2, 2009

textFlow.interactionManager = new EditManager();     // unless it already has one

EditManager(textFlow.interactionManager).selectRange(begPosition,endPosition)

EditManager(textFlow.interactionManager).applyLink("http:mylink")

Can you be more specific about the issue you are having?

There is no built in UI for adding links.  If you add an EditManager to a TextFlow you can use the mouse and cursor keys to create a selection instead of calling SelectRange.  You'll have to add your own UI (for example a button and a textInput to collect the data) and invoke the applyLink operation.

Thanks,

Richard

Known Participant
September 10, 2009

PERFECT!