InlineGraphicElement
Hello,
I am building a text editor based on the Text Layout Framework and have made some good progress.
An aspect of my editor is for the insertion of graphics into the Rich Text Editor and I am struggling to understand the nature and behavior of InlineGraphicElement.
In my implementation, I have a method as follows:
public function addPhoto(displayObject:Object,width:uint,height:uint):void
{
var em:IEditManager = textArea.textFlow.interactionManager as IEditManager;
em.insertInlineGraphic(displayObject,width,height);
var graphic:InlineGraphicElement = textArea.textFlow.findLeaf(textArea.selectionActivePosition-1) as InlineGraphicElement;
}
Which should be pretty self-explanatory.
I am not entirely sure what useful options exist as far as working with the InlineGraphicElement object. I want to do things like put resizer handles on the object to allow it to be resized, as well as enable the item to be dragged around to be repositioned within the text it has been inserted into.
I have some ideas as to how to possible go about doing this but they seem unnecessarily complex and I just want to see if any TLF experts have any recommendations here as far as a starting point for this effort.
Thank you in advance.
