This isn't my area of expertise at all, but a quick look at InlineGraphic implies that you can set the "source" property to a DisplayObject. I would not use Spark Image. Spark and MX controls expect their parent to be another UIComponent which is unlikely in a TLF rendering. Maybe create a flash.display.Bitmap instead.
If the exporter doesn't do what you want, you can probably copy it and modify it to do what you need. Good luck, -Alex On 12/12/17, 2:03 AM, "hugo" <hferreira...@gmail.com> wrote: >Hello, > >Sorry for dig up this topic but I started to develop a text editor using >TLF. >It's a lot of features and everything going straightforward except the >images. > >I can load an image (uploaded by the user), convert the image data to >bytearray and then draw on a sprite. >If I inser this sprite using insertInlineGraphic it works on the screen (I >can't load a spark Image object - draw an empty square and I still don't >know why). > >If I try to save (export), the exporter exports [Sprite object] string. > >Support insertInlineGraphic and export directly as base 64 string would be >the perfect solution (this could also increase the html export quality). > >Since this is a blocker to my development, I'm digging on the TLF Flex >source code to try to support this. > >If anyone could share some code (helper utils), will help a lot ! > >When I finish, I will share the results so someone could patch the >original >Flex TLF if you whish. > > > >-- >Sent from: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle >x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Cdb1a3 >391264b441303be08d5414798d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6 >36486698114819558&sdata=J0GVEsmsiQ3dQr9tsY%2FJ4ohQgwWcaLJIEKMXMWPWDcQ%3D&r >eserved=0