Skip to main content
Participant
February 21, 2010
Question

Extend Element?

  • February 21, 2010
  • 1 reply
  • 588 views

Is it possible to extend elements?

i.e. Would like to create a component which contains an image and text together and insert it as one object? so ideally would like to extend the Element and define my own.

Please advise.

This topic has been closed for replies.

1 reply

Adobe Employee
February 22, 2010

No, I'm sorry, FlowElements are final. I'm not sure why you want to combine text and an image in one element. Do you want the insert to be treated as one atomic operation for undo purposes? You could do this by grouping the two inserts into a single composite operation. Or are you trying to associate some alt text with the image? In this case, you could attach the alt text using a user formatting property (see setStyle). If neither of these approaches will work, please let me know -- usually there's some alternative that will get what you need.

Thanks,

- robin

selborgiAuthor
Participant
February 22, 2010

The concept I have in mind is an image with s text description below it. and Ideally Would like to do this as one element. Could you also elaborate on the composite operation and operstions in general.

Thank you for the quick reply.

Inspiring
April 7, 2010

Hi Selborgi,

Did you find a solutions for what you tried to do? I'm experimenting with TLF to do the same.

Any comments will be appreciated.

Tks.