![](/img/trans.png)
[英]Yahoo YUI 2 - Rich Text Editor - how do I change the titlebar of the Editor to another string value?
[英]How can I set the focus inside the Yahoo Rich Text Editor
我有一个HTML表单,其中包含YAHOO富文本编辑器。
当我显示表单时,我希望YAHOO编辑器具有焦点,以便光标准备好接受输入,而用户不必单击它或将其制表符
我尚未使用YAHOO富文本编辑器,但是如果您使用window.onload事件,它不会起作用吗?
像漫游一样,我从未使用过YAHOO富文本编辑器,但它应该与window.onload
事件一起使用。
假设您为YAHOO富文本编辑器指定了id="yahoo_text_editor"
。
然后做
<body onload="document.getElementById('yahoo_text_editor').focus()">
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.