如何在 Flex TextArea 中嵌入 html 文本
我有一个面板,在上面放置了淡入显示效果。起初,该效果仅应用于面板。文本只会出现,没有淡入效果。然后这里有人告诉我嵌入字体,这就像一个魅力
现在我有另一个问题:我将文本发布到富文本编辑器,然后我获取 HTML 文本并将其发布到我的面板。现在嵌入不起作用!要么它只是在没有淡入的情况下出现,要么,如果我嵌入它,它根本不显示!
如何在 XML 中保存 HTML 格式的数据并检索数据并获得相同的 HTML 格式?
I have a panel on which I have put fadeIn show effect. At first, the effect was only applied to the panel. The text would just appear without the fadeIn effect. Then someone here told me to embed the fonts, which worked like a charm
Now I have another problem: I get the text posted to the rich text editor and then I ake the HTML Text and post it to my panel. Now the embedding doesn't work! Either it just appears without the fadeIn, or, if I embed it, it doesn't show up at all!
How can I save data with HTML formatting in XML and retrieve the data and get the same HTML formatting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您只是启用了 embedFonts 属性,但实际上并未嵌入字体本身。字体资源需要在编译时嵌入,或者在运行时加载注册。
有关编译时嵌入的信息,请参阅此处,以及 < a href="http://nochump.com/blog/archives/20" rel="nofollow">此处 和 此处用于运行时加载。
It sounds like you're just enabling the embedFonts property, but not actually embedding the fonts themselves. The font resources need to be embedded at compile time, or loaded and registered at runtime.
See here for compile time embedding, and here and here for runtime loading.