0

如何将图像添加到Adob​​e Flex RichTextEditor 控件中?我的意思是使用按钮=)

所以我们有一些带有 RTE a-la 编辑器截图的文本编辑器 http://livedocs.adobe.com/flex/3/html/images/RTE1.png

我们想使用一些按钮进入它的内容图像。怎么做这样的事情?

顺便说一句:我发现了这个http://anotherflava.com/2009/01/12/flex-xhtml-rich-text-editor-w-images/但我真的不明白如何让它工作,所以如果有人可以发布简单的项目(DIRTY IS OK)源代码很简单!)))

4

1 回答 1

1

RichTextEditor是一个复杂的组件,由几个小组件和TextArea组成。所以问题是如何在 TextArea 中插入图像。

TextArea 可以渲染简单的 HTML 并且<img>支持标签。更多关于 htmlText 属性的信息在这里

所以

var myTextEditor:RichTextEditor = new RichTextEditor();
myTextEditor.htmlText = "<img src='myImage.jpg' />"
于 2010-01-30T06:21:26.570 回答