Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Are bulleted lists supported in the new version?
Copy link to clipboard
Copied
No. Not in 1.0 or 1.5.
Copy link to clipboard
Copied
i m new with text layout framework want to apply bulletlist on selected text of textflow.
I also follow same Richard Leggett's approach of adding a SpanElement at the beginning of the paragraph. i got success with first and last paragraph in my selected textflow by using following code.
var paraFormat:ParagraphFormat = new ParagraphFormat();
paraFormat.marginLeft = 15;
var pElement:ParagraphFormattedElement = elementRange.firstParagraph;
var span:SpanElement = new SpanElement();
span.text = "\u2022 ";
pElement.addChildAt(0,span);
pElement.paragraphFormat = paraFormat;
_textFlow.flowComposer.updateAllContainers();
elementRange is selectedEvent.selectedElementRange
i dont get any methods that helps me to traverse thru selected textflow and apply this to all paragraph.
please help me if any one has idea on this.
Thanks in advance for any help.
Copy link to clipboard
Copied
You are using a very old build. In more recent builds there is a getNextParagraph method of ParagraphElement.
If you want to backport it here's the code:
public function getNextParagraph():ParagraphElement
{
var nextLeaf:FlowLeafElement = getLastLeaf().getNextLeaf();
return nextLeaf ? nextLeaf.getParagraph() : null;
}
That should help you iterate through the paragraphs of a selection. Best would be to move up to a newer build - there've been a lot of changes.
Regards,
Richard
Copy link to clipboard
Copied
Thanks Richard.
i got latest Text layout framework from Weekly builds and the thing are working for me.
now i have one another issue is my current bullet list not wroking proper as it was working
in flex 3 textarea. also i try to apply bullets on spark textarea but not getting textfield in <s:Textarea>
can any one help me out how to apply bullets on textarea.
Thanks in advance for any help.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more