flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugo Ferreira (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35371) TLF - Import/Load with base64 image
Date Wed, 13 Dec 2017 22:45:00 GMT
Hugo Ferreira created FLEX-35371:
------------------------------------

             Summary: TLF - Import/Load with base64 image
                 Key: FLEX-35371
                 URL: https://issues.apache.org/jira/browse/FLEX-35371
             Project: Apache Flex
          Issue Type: Bug
          Components: TLF
    Affects Versions: Apache Flex 4.16.0
            Reporter: Hugo Ferreira


In the JIRA https://issues.apache.org/jira/browse/FLEX-35370 I donate my patch to fully support
base64 image for import and export, however after reload (import), the TLF breezes until the
user press any key.

I found a very darty patch but works:

After import on the end of the method importToFlow of the class TextConverter, add the following
patch:

{code:java}
var textFlow:TextFlow = parser.importToFlow(source);

if (textFlow.interactionManager != null && textFlow.interactionManager is IEditManager)
{
    var timer:Timer = new Timer(1, 1);
    timer.addEventListener(TimerEvent.TIMER, function (event:TimerEvent):void
    {
        (textFlow.interactionManager as IEditManager).updateAllControllers();
    });
    timer.start();
}

return textFlow;
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message