Flex 4 RichEditableText 带有右键菜单
我需要可以复制的可选文本。
有些用户习惯用Ctrl+C(Mac上为Cmd+C)进行复制,有些用户习惯右键单击并选择“复制”。
使用s:RichEditableText,右键菜单中没有“复制”: http://d.pr/xWXW
使用mx:Text,右键菜单中有“复制”,但它不复制任何内容: http://d. pr/vtiw
Ctrl+C 适用于 s:RichEditableText 和 mx:Text。
是否有属性或其他东西可以在 s:RichEditableText 的右键单击菜单中启用“复制”?
I need selectable text that can be copied.
Some users are used to copy with Ctrl+C (Cmd+C on Mac), and some are used to right click and select "Copy".
Using s:RichEditableText, there is no "Copy" in right click menu: http://d.pr/xWXW
Using mx:Text, there is "Copy" in right click menu, but it doesn't copy anything: http://d.pr/vtiw
Ctrl+C works for both s:RichEditableText and mx:Text.
Is there a property or something to enable "Copy" in right click menu for s:RichEditableText?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 selectable 或 editable 属性设置为“true”,您就可以从 RichEditableText 复制文本。但默认情况下它们是“true”...所以,我检查了右键单击上下文菜单,其中有“复制”(Flash Builder 4.5 Prem.、Flash Player 10.3、Win7、Firefox)。
首先,我会尝试清除并重建项目,如果没有帮助,请尝试使用默认设置和纯文本内容在 Spark RichEditableText 上“右键单击”。
If either selectable or editable propery is set to "true" you are able to copy text from RichEditableText. But they are "true" by default... So, I checked right-click context menu and "Copy" is in there (Flash Builder 4.5 Prem., Flash Player 10.3, Win7, Firefox).
First, I would try to clear and rebuild the project, and if it doesn't help try "right-clicking" on spark RichEditableText with default setting and plain-text content.