分享

基于Flex2的WYSIWYG编辑器设想

 WindySky 2007-04-12
基于Flex2的WYSIWYG编辑器设想

看到文档中的下面这段代码,大概可以设想一下基于FLEX2的WYGUWYG编辑器怎么做了

<?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>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多