Question
Inline Graphics are broken
Does anybody have any example of
EditManager.insertInlineGraphic working? (I always get TypeError
Error 1009: Cannot access a property or method of a null object
reference.) I want to insert a graphic at a specific point in the
text. Is the point of this function to split a span, and insert the
graphic element between the spans for you?
Also, is it just me or are graphics not very well thought-out?
When you do a TextFilter.export to a TextFilter.TEXT_LAYOUT_FORMAT, embedded images have a source attribute of the instance name. Which is useless in any circumstance I can think of. You cannot store or transport the result.
Copy/paste doesn't work because the copied img tag has the same instance id as the original. This is true for programmatic and ctrl+c/v copy/paste.
Accessing images is difficult, you have to walk through each node in the tree, then check it's type against InlineGraphicElement. This is true for accessing all images, or selected images.
Thanks,
Sean.
Also, is it just me or are graphics not very well thought-out?
When you do a TextFilter.export to a TextFilter.TEXT_LAYOUT_FORMAT, embedded images have a source attribute of the instance name. Which is useless in any circumstance I can think of. You cannot store or transport the result.
Copy/paste doesn't work because the copied img tag has the same instance id as the original. This is true for programmatic and ctrl+c/v copy/paste.
Accessing images is difficult, you have to walk through each node in the tree, then check it's type against InlineGraphicElement. This is true for accessing all images, or selected images.
Thanks,
Sean.
