添加小部件后如何将焦点设置到 CKEditor 中的编辑器上? 我不希望小部件保持焦点
最佳答案
您是否已将startupFocus : true 添加到您的配置文件中?
查找:http://ckeditor.com/forums/CKEditor-3.x/Set-focus-load
我的自定义配置文件的摘录如下所示
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
config.extraPlugins = 'confighelper';
config.autoGrow_onStartup = true;
config.autogrow_minheight = 50;
config.autogrow_maxheight = 200;
config.contentsLangDirection = 'ui';
config.startupFocus = true;
//more options...
};
关于ckeditor - 在ckeditor中添加小部件后将焦点设置到编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27147149/