Skip to main content
August 2, 2009
Question

TLF: How to insert images

  • August 2, 2009
  • 2 replies
  • 1885 views

Hello,

Can someone point me to some sample code lines where i can be see how I can insert an image at the blinking text cursor, like in the nice example that adobe guys created.

Also letting users see the sources for that great example (http://labs.adobe.com/technologies/textlayout/demos/) is a nice way to show people how to do stuff.

What do you think ?

-------------------

Adrian

This topic has been closed for replies.

2 replies

Participant
January 25, 2011

Any particular reason why the code for http://labs.adobe.com/technologies/textlayout/demos/  is not available? That would be like the ultimate learning tool!

Adobe Employee
August 5, 2009

You can insert an inline image using the IEditManager.insertInlineGraphic function. It will be inserted at the current selection point (if you have a range selection, the range will be deleted first, then the inline inserted).

IEditManager(textFlow.interactionManager).insertInlineGraphic(...)

or (textFlow.interactionManager as IEditManager).insertInlineGraphic(...)

Unfortunately the source code for (http://labs.adobe.com/technologies/textlayout/demos/) is not available.

- robin

August 6, 2009

Thanks for the answer.

It would be nice tougt to have some "how to.." tutorials for making life easier to developers like me that are trying to start with TLF.

----------

Adrian

Adobe Employee
August 6, 2009

We do have some examples and chapter documentation posted on our main page: http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework. Also, if you look at the html files, they also contain samples. However -- we can always use more! And we frequently add updates. If you have specific requests, please let us know.

Thanks!

- robin