【发布时间】:2011-08-04 04:07:21
【问题描述】:
我在 CKEditor 3.4.1 的 instanceReady 事件中设置焦点时遇到问题。我已经尝试了以下两种方法,但它们并不总是有效。
CKEDITOR.on('instanceReady', function(e) { CKEDITOR.instances.editor1.focus(); });
CKEDITOR.replace('editor1',
{
on :
{
instanceReady : function( ev )
{
ev.editor.focus();
}
}
} );
【问题讨论】:
-
关于为什么给定的解决方案不适合您的任何更新?
标签: javascript jquery ckeditor