如何确保ckeditor在jquery-ui对话框窗口内显示时具有焦点 [英] How to ensure that ckeditor has focus when displayed inside of jquery-ui dialog widget

查看:198
本文介绍了如何确保ckeditor在jquery-ui对话框窗口内显示时具有焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 CKEDITOR.appendTo(my_div,null,my_string)创建ckeditor的实例...没有问题。

I have used CKEDITOR.appendTo( "my_div" , null , my_string ) to create an instance of ckeditor ... no problem.

然而,LINK按钮打开一个非交互式LINK对话框。

however, the LINK button opens a non-interactive LINK dialog box.

因此,有一些配置设置,设置为true,也许?

So, is there some config setting that it supposed to be manually set to true, perhaps?

编辑1 ...我会说明交互式LINK对话框

EDIT 1 ... I will explain what I meant by non-interactive LINK dialog box ...

当我点击ckeditor的LINK按钮(看起来像链接链接)时,会打开一个LINK对话框框,它有一个输入字段为我输入一个URL,加上一个下拉选择协议,加上几个其他的表单元素。

When I click the ckeditor's LINK button (the one that looks like a chain-link), it opens a LINK dialog box which has a input field for me to enter a URL, plus a pulldown to choose protocol, plus a couple of other form elements.

但是,这些都不是可用的...如果我尝试输入url输入字段,没有任何反应(该字段不接受焦点)。

However, none of these are use-able ... if I try to type in the url input field, nothing happens (the field will not accept focus); likewise the pulldowns do not open if I click them.

编辑2 ...已添加screenshot

EDIT 2 ... added screenshot

推荐答案

我使用的是:


  • jquery-1.8.2

  • jquery-1.8.2

jquery-ui-1.10.3

jquery-ui-1.10.3

ckeditor 4.3.1

ckeditor 4.3.1

然后我替换: jquery-ui-1.10.3 jquery-ui-1.9.0 ,它似乎按预期工作。

then I replaced: jquery-ui-1.10.3 with: jquery-ui-1.9.0 and it seems to work as expected.

如果还原回jquery-ui 1.9对您不利,还请参阅:

If reverting back to jquery-ui 1.9 is not good for you, also look at:

  • jquery-ui forum ... "can't edit fields of CKEditor in jQuery UI modal dialog"

jquery-ui bugs ...对话框:CKmodor in Modal对话框无法编辑

jquery-ui bugs ... "Dialog: CKEditor in Modal Dialog is not editable"

这篇关于如何确保ckeditor在jquery-ui对话框窗口内显示时具有焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆