在ckeditor中添加窗口小部件后,将焦点设置到编辑器

时间:2014-11-26 10:47:58

标签: ckeditor

添加小部件后,如何将焦点设置到CKEditor中的编辑器? 我不希望小部件保持焦点

1 个答案:

答案 0 :(得分:1)

have you added startupFocus : true to your config file?

Look up: http://ckeditor.com/forums/CKEditor-3.x/Set-focus-load

An excerpt from my custom config file looks something like this

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...
};