TextFlow Direction
Hello,
I am building an editor component and there is a control that lets the user toggle the direction of the text flow between
left to right and right to left.
My simple code for this is as follows:
override public function execute_off() : void
{
this.label = "\u2192";
textArea.textFlow.direction = Direction.LTR;
}
override public function execute_on() : void
{
this.label = "\u2190";
textArea.textFlow.direction = Direction.RTL;
}
Where "this" in this instance is a class that extends ToggleButton.
This feature works until I add some other formatting to some text. From that point forward, setting the textArea.textFlow.direction property is ignored.
Is this a bug or are there better ways to go about doing this?
