I'm not sure what user styles are and why the aren't in the markup. Can you provide more details?
Consider whether this is a general TLF issue or just something you should do in your app to add functionality. A general TLF issue probably can't bypass the Clipboard because you should be able to copy/paste from one SWF to another SWF. -Alex On 11/3/13 1:01 PM, "Gavriel Harbater" <gavha...@gmail.com> wrote: >Okay. After researching this, it looks like the problem is as follows: > >The TextFlow is saved to the clipboard as a string which is the markup >representation of the TextFlow. The markup is produced using >BaseTextLayoutExporter.export(). The markup produced from that is missing >custom user styles. My custom user styles are actually quite complex >classes. > >I'm looking for suggestions on the best way to handle this problem. I can >think of three possible angles: >1) Somehow write user styles into the TextFlow markup. I'm not sure if >there's a way to markup custom styles and complex ones are definitely an >issue. >2) Write complex objects to the clipboard. Is this possible? If yes, why >are strings currently used? >3) Skip the clipboard altogether and create some static function to call >when the clipboard content is pasted to apply custom styles. > >Thoughts? > >On Nov 3, 2013, at 10:13 AM, Harbs wrote: > >> Looking into an issue I had, I noticed that user styles in TLF are not >>preserved on copy/paste. (Actually, it would probably be more correct to >>say that they're not preserved on copy.) >> >> I'm looking into TextScrap/TextClipboard now, but if anyone has >>experience here as to why the styles are being dropped, I'd love to knowŠ >> >> Harbs >