基于Flex2的WYSIWYG编辑器设想 看到文档中的下面这段代码,大概可以设想一下基于FLEX2的WYGUWYG编辑器怎么做了
CODE:
<?xml version="1.0"?>
<!-- Simple example to demonstrate the TextArea control. --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="TextArea Control Example" height="75%" width="75%" paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"> <mx:TextArea width="400" height="100"> <mx:text> This is a multiline, editable TextArea control. If you need a non-editable multiline control, use the Text control. </mx:text> </mx:TextArea> <mx:TextArea width="400" height="100"> <mx:htmlText> <![CDATA[ This is <font color="#FF0000">HTML text</font> in a <b>TextArea control</b>. Use the <u>htmlText property</u> of the <font color="#008800">TextArea control</font> to include basic HTML markup in your text. ]]> </mx:htmlText> </mx:TextArea> </mx:Panel> </mx:Application> |
|