Answered
How to define LinkElement ID using IEditManager.applyLink
I'm using code of the form:
IEditManager(_textFlow.interactionManager).applyLink(" http://www.cnn.com");
However, in my underlying markup, I'd like to have something like this:
<flow:a href=" http://www.cnn.com" id="myID">My Link here</flow:a>
Since in the latest releases of Gumbo SDK every FlowElement have IDs, we're using these IDs to track LinkElements which are later used to fire specific events based on their IDs, when the TextFlow is in non-editable mode. (we ignore the actual href).
The applyLink method of course takes only a url as string, but is there a way to add a general LinkElement using the IEditManager where we could specify the LinkElement ID ? We don't want to have to directly add LinkElements to the TextFlow because our current application uses an IEditManager.
IEditManager(_textFlow.interactionManager).applyLink(" http://www.cnn.com");
However, in my underlying markup, I'd like to have something like this:
<flow:a href=" http://www.cnn.com" id="myID">My Link here</flow:a>
Since in the latest releases of Gumbo SDK every FlowElement have IDs, we're using these IDs to track LinkElements which are later used to fire specific events based on their IDs, when the TextFlow is in non-editable mode. (we ignore the actual href).
The applyLink method of course takes only a url as string, but is there a way to add a general LinkElement using the IEditManager where we could specify the LinkElement ID ? We don't want to have to directly add LinkElements to the TextFlow because our current application uses an IEditManager.
