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

标签 ckeditor

添加小部件后如何将焦点设置到 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/

相关文章:

ckeditor - 更改 ckEditor 的背景颜色

javascript - 在 Mathjax- CkEditor 中自定义我的自定义按钮

html - 使用 css 重置时取消重置 css 属性?

javascript - 如何计算CKEditor实例第一行的LineHeight?

javascript - 预先设置 CKEditor 的值

javascript - Django-ckeditor 内联错误

javascript - 如何禁用 CkEditor 表属性中的标题?

jquery - 当我移动 CKEditor 表单时出现问题

javascript - CKeditor v4 在同一页面上具有 RTL 和 LTR

javascript - 如何在 CKEditor 上禁用自动格式化