<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; RichTextEditor</title>
	<atom:link href="http://blog.minidx.com/category/flex/richtexteditor-flex/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex 4中如何截取RichText内文字的例子</title>
		<link>http://blog.minidx.com/2009/09/16/2929.html</link>
		<comments>http://blog.minidx.com/2009/09/16/2929.html#comments</comments>
		<pubDate>Wed, 16 Sep 2009 13:27:40 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[needsSWF]]></category>
		<category><![CDATA[truncation]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2929</guid>
		<description><![CDATA[接下来的例子演示了Flex 4中如何通过设置truncation属性和指定最大可见行数，截取RichText内文字。 
让我们先来看一下Demo（可以点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
下面是main.mxml：
&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;name=&#34;Spark_RichText_truncation_test&#34;
&#160; &#160; &#160; &#160; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34;
&#160; &#160; &#160; &#160; xmlns:mx=&#34;library://ns.adobe.com/flex/halo&#34;
&#160; &#160; &#160; &#160; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34;&#62;
&#160;
&#160; &#160; &#60;mx:ApplicationControlBar&#160;width=&#34;100%&#34; cornerRadius=&#34;0&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:Form&#160;styleName=&#34;plain&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:FormItem&#160;label=&#34;truncation:&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;s:HSlider&#160;id=&#34;slider&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; minimum=&#34;-1&#34;
&#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/09/16/2929.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过contextMenu属性给RichTextEditor添加自定义右键下拉菜单的例子</title>
		<link>http://blog.minidx.com/2009/01/23/1983.html</link>
		<comments>http://blog.minidx.com/2009/01/23/1983.html#comments</comments>
		<pubDate>Fri, 23 Jan 2009 00:45:14 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[ContextMenu]]></category>
		<category><![CDATA[ContextMenuEvent]]></category>
		<category><![CDATA[ContextMenuItem]]></category>
		<category><![CDATA[hideBuiltInItems()]]></category>
		<category><![CDATA[menuItemSelect]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1983</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过contextMenu属性，给RichTextEditor添加自定义右键下拉菜单。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;init();&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.Alert;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; [Bindable]
&#160; &#160; &#160; &#160; &#160; &#160; private var cm:ContextMenu; 
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/01/23/1983.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过设置styleName样式将RichTextEditor的样式名称切换到预定义的“.opaquePanel”样式的例子</title>
		<link>http://blog.minidx.com/2009/01/22/1973.html</link>
		<comments>http://blog.minidx.com/2009/01/22/1973.html#comments</comments>
		<pubDate>Thu, 22 Jan 2009 00:57:00 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[opaquePanel]]></category>
		<category><![CDATA[styleName]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1973</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过设置styleName样式，将RichTextEditor的样式名称切换到预定义的“.opaquePanel”样式。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:ApplicationControlBar&#160;dock=&#34;true&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:ToggleButtonBar&#160;selectedIndex=&#34;1&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; itemClick=&#34;richTextEditor.styleName = event.item.data;&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:dataProvider&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:Array&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/01/22/1973.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何控制鼠标移出RichTextEditor编辑范围外的时候隐藏其工具栏的例子</title>
		<link>http://blog.minidx.com/2009/01/21/1971.html</link>
		<comments>http://blog.minidx.com/2009/01/21/1971.html#comments</comments>
		<pubDate>Wed, 21 Jan 2009 12:02:43 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[rollOut]]></category>
		<category><![CDATA[rollOver]]></category>
		<category><![CDATA[showControlBar]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1971</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何控制鼠标移出RichTextEditor编辑范围外的时候隐藏其工具栏。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:RichTextEditor&#160;id=&#34;richTextEditor&#34;
&#160; &#160; &#160; &#160; &#160; &#160; title=&#34;RichTextEditor&#34;
&#160; &#160; &#160; &#160; &#160; &#160; status=&#34;version {richTextEditor.getStyle('version')}&#34;
&#160; &#160; &#160; &#160; &#160; &#160; showControlBar=&#34;false&#34;
&#160; &#160; &#160; &#160; &#160; &#160; cornerRadius=&#34;0&#34;
&#160; &#160; &#160; &#160; &#160; &#160; width=&#34;100%&#34;
&#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/01/21/1971.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过设置各寄宿控件visible属性控制RichTextEditor控件的各寄宿控件显示与否的例子</title>
		<link>http://blog.minidx.com/2008/12/29/1841.html</link>
		<comments>http://blog.minidx.com/2008/12/29/1841.html#comments</comments>
		<pubDate>Mon, 29 Dec 2008 14:25:42 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[alignButtons]]></category>
		<category><![CDATA[bulletButton]]></category>
		<category><![CDATA[fontFamilyCombo]]></category>
		<category><![CDATA[fontSizeCombo]]></category>
		<category><![CDATA[linkTextInput]]></category>
		<category><![CDATA[toolBar2]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1841</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过设置各寄宿控件visible属性，控制RichTextEditor控件的各寄宿控件显示与否。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.CheckBox;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function checkBox_change(evt:Event):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var ch:CheckBox = evt.currentTarget as CheckBox;
&#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/12/29/1841.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/26 queries in 0.328 seconds using disk
Object Caching 425/821 objects using disk

Served from: blog.minidx.com @ 2012-02-10 01:50:19 -->
