You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2017/08/21 09:11:58 UTC
[03/28] git commit: [flex-asjs] [refs/heads/feature/dragAndDrop] -
TLFEditor needs StandardTLFFactory
TLFEditor needs StandardTLFFactory
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9decbb65
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9decbb65
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9decbb65
Branch: refs/heads/feature/dragAndDrop
Commit: 9decbb65f7fcb4ab3425700ab6e8d311b05948c6
Parents: 574faa1
Author: Alex Harui <ah...@apache.org>
Authored: Tue Aug 8 09:59:13 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Aug 8 10:01:16 2017 -0700
----------------------------------------------------------------------
frameworks/projects/TLF/src/main/flex/TLFClasses.as | 1 +
manualtests/TLFEditTestFlexJS/src/TLFEditor.as | 4 ++++
2 files changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9decbb65/frameworks/projects/TLF/src/main/flex/TLFClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/TLF/src/main/flex/TLFClasses.as b/frameworks/projects/TLF/src/main/flex/TLFClasses.as
index 29f9d14..6321c18 100644
--- a/frameworks/projects/TLF/src/main/flex/TLFClasses.as
+++ b/frameworks/projects/TLF/src/main/flex/TLFClasses.as
@@ -111,6 +111,7 @@ package
import org.apache.flex.textLayout.events.TextLayoutEvent; TextLayoutEvent;
import org.apache.flex.textLayout.factory.TextLineFactoryBase; TextLineFactoryBase;
+ import org.apache.flex.textLayout.factory.StandardTLFFactory; StandardTLFFactory;
import org.apache.flex.textLayout.factory.StringTextLineFactory; StringTextLineFactory;
import org.apache.flex.textLayout.factory.TextFlowTextLineFactory; TextFlowTextLineFactory;
import org.apache.flex.textLayout.factory.TruncationOptions; TruncationOptions;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9decbb65/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
----------------------------------------------------------------------
diff --git a/manualtests/TLFEditTestFlexJS/src/TLFEditor.as b/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
index fc6ad76..8052a58 100644
--- a/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
+++ b/manualtests/TLFEditTestFlexJS/src/TLFEditor.as
@@ -30,6 +30,8 @@ import flash.utils.setTimeout;
import org.apache.flex.textLayout.beads.DispatchTLFKeyboardEventBead;
import org.apache.flex.textLayout.container.TextContainerManager;
+import org.apache.flex.textLayout.factory.TLFFactory;
+import org.apache.flex.textLayout.factory.StandardTLFFactory;
import org.apache.flex.textLayout.edit.EditingMode;
import org.apache.flex.textLayout.edit.ISelectionManager;
import org.apache.flex.textLayout.edit.SelectionFormat;
@@ -57,6 +59,8 @@ public class TLFEditor extends UIBase
public function TLFEditor()
{
+ TLFFactory.defaultTLFFactory = new StandardTLFFactory();
+
// Create the TLF TextContainerManager, using this component
// as the DisplayObjectContainer for its TextLines.
// This TextContainerManager instance persists for the lifetime