Skip to main content
Known Participant
January 31, 2010
Question

Paste Text - pointFormat not working?

  • January 31, 2010
  • 1 reply
  • 636 views

Hello. We are using Vellum: 591 (736856)

A strange thing happens, when one tries to paste text into a TextFlow. It seems to enter the Text with the standard-text format, not with the current format of the text in selection.

Example: This is inserted Text in a headline

We tried to change the behaviour by altering a selectionChangeListener

event.selectionState.pointFormat = selectedElementRange.characterFormat;

Applying upon inserted text the format, which is the format at insertion point would be the expected behaviour (works like this in Office, DTP Programs, but curiously not in this editor).

Could you give me a hint of how to do it?

Thanks in advance,

Jo Klappenbach

This topic has been closed for replies.

1 reply

Adobe Employee
February 2, 2010

I hope the post in the other thread today explains what is going on. The pointFormat applies to text that is typed, and not to text that is pasted -- I think this is the same as other applications such as Word. For instance, if you have an insertion point at the end of a story in Word, hit the bold button, and then paste, the pasted text appears normal.

- robin