来源:http://blog.minidx.com/2008/12/10/1703.html
<mx:RichTextEditor id="noticContentTxt"
showControlBar="false"
cornerRadius="0"
width="100%"
height="100%"
rollOut="noticContentTxt.showControlBar = false;"
rollOver="noticContentTxt.showControlBar = true;"
change="richTextEditor_change(event);"
creationComplete="richTextEditor_creationComplete(event);"/>
其中:
rollOut="noticContentTxt.showControlBar = false;" rollOver="noticContentTxt.showControlBar = true;"
把鼠标移开隐藏编辑栏
change="richTextEditor_change(event);" creationComplete="richTextEditor_creationComplete(event);
在编辑器右上角显示字数:
private const MAX_CHARS:uint = 2000;
private function richTextEditor_creationComplete(evt:FlexEvent):void {
RichTextEditor(evt.currentTarget).textArea.maxChars = MAX_CHARS;
}
private function richTextEditor_change(evt:Event):void {
var rte:RichTextEditor = evt.currentTarget as RichTextEditor;
var rteTA:TextArea = rte.textArea as TextArea;
rte.status = rteTA.length + "/" + rteTA.maxChars;
}
用<s:RichEditableText textFlow="{TextConverter.importToFlow(notic.noticContent, TextConverter.TEXT_FIELD_HTML_FORMAT)}" width="601" height="303"/>
显示html格式的内容
分享到:
相关推荐
RichTextEditor实现的源代码码
含有 CuteEditor site license 如果只是没有license 复制bin文件下的 richtexteditor.lic 覆盖即可
1、flex 是开发swf方法的一种 2、flexBuilder基于eclipse的IDE集成Design、debug动态help 4j:ant脚本 3、flex framework visual components Manager classes RPC/Messaging/Data Service c Utilities 4、MxML ...
iOS 仿简书/百家号 图文编辑器 支持图片描述 、 图片删除按钮、分割线
DXperience 9.1.2 Sources 源代码
该实例实现s60中显示富文本。所谓富文本主要是指含有图片的文本。
适用于Android的RichEditor RichEditor for Android是一个美丽的富文本WYSIWYG Editor的Android 。...如何使用? 设置 Gradle repositories { jcenter() } dependencies { compile ' jp.wasabeef:r
iOS富文本编辑器 RichTextEditor ,RichTextEditor 是支持 iPhone 和 iPad 的一个富文本编辑控件。 特性:...
Lotus_Notes_中_RichTextEditor_组件的开发,当作福利吧,免积分
flex3的cookbook书籍完整版dpf(包含目录),目录是我花了两个多小时自己整理的,希望对大家有帮助。 目录: 第一章.Flex与ActionScript基础(3) 1.1节.用FlexBuilder创建Flex项目 1.2节.用FlexBuilder创建Flex库项目 ...
RichTextEditor_JS 这个应用程序是使用Java javascript编写的,允许在网络浏览器上创建和编辑文本文件。 您可以使用以下链接测试应用行为。 下面是应用程序的图像概述。
如果您进行编辑,则页面将重新加载。 您还将在控制台中看到任何棉绒错误。npm test 在交互式监视模式下启动测试运行器。 有关更多信息,请参见关于的部分。npm run build 构建生产到应用程序build文件夹。 它在生产...
jar包,官方版本,自测可用
RTE (Rich Text Editor) ASP.NET Control 基于 ASP.NET,目前只支持 IE 和 Firefox。
富文本编辑器 项目设置 npm install 为开发编译和热重载 npm run serve 为生产编译和缩小 npm run build 整理和修复文件 npm run lint 自定义配置 请参阅。
它还准备好使用为这些实现的 UI 元素。 特征 粗体、斜体、下划线、删除线、下标、上标 标题1-6,文本主体,预格式化,块引用 字体(读取所有系统字体) 字体大小 文字颜色 文本背景颜色 突出显示文本 左对齐、居中...
前端富文本发布器 看
jar包,官方版本,自测可用