Is it an AIR app or browser? What

1. Where are you pasting it into? If you're pasting into another location
in the same document then I would override and update the export method to
include your custom styles. How are the styles complex? They should be
inherited or if it's actual styles and classes it may be a bug if they
aren't being included.

2. You can set different
formats<http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/Clipboard.html>to
the clipboard. It might be a roundable way of keeping the format of
converting by exporting to HTML on copy and importing the HTML on paste. I
wouldn't be surprised if there is a undocumented TLF_Format type.

3. See 2.

Can you paste the actual TLF markup and the TLF markup that is copied to
the clipboard for comparison?




On Sun, Nov 3, 2013 at 3: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
>
>

Reply via email to