20lbMonkey
asked on
Flex 3 Rich Text Editor TextArea and modifying the "leading" value
Is it possible to add a drop down to the RichTextEditor Toolbar that allows you to manipulate the "leading" value (line spacing)?
I tried rte2.textArea.setStyle("le
The best site I found was http://blog.flexexamples.com/2008/05/31/setting-the-leading-on-a-text-control-in-flex/, but I was unable to use the methods to manipulate this value in the RichTextEditor.
Thanks for any help you can offer!
I don't think you could actually go about and do that with the Control as it is. You could consider making your own component from scratch or modifying the RTE control to suit your needs. Or add a little slider (as the example suggests) next to your Rich text editor to perform the same function.
Also, I tried it out with a simple RTE and two buttons which changed the leading values of the RTE to one and 10 calling the functions as shown in the code snippet. Worked just fine.
private function setToTen():void{
rte.setStyle("leading","10");
}
private function setToOne():void{
rte.setStyle("leading","1");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your mulitple posts! Its funny how you can look at something for so long and totally ignore the obvious.
Thanks again!
Thanks again!