Skip to main content
Aug 30, 2009 11:35 AM UTC
Question

How to apply link to formatted text?

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

Help, please!

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Sep 2, 2009 5:19 PM UTC

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

Translate
Known Participant
Sep 10, 2009 1:44 AM UTC

PERFECT!

Translate