#12916 closed Bug (invalid)
Widget focus lost after closing dialog
Reported by: | janousek | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Focus | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce:
1) Open http://cksource.com/temp/widget/samples/plugins/widget/widget.html
2) Select (editable) text inside any widget.
3) Click on "about" button in toolbar.
4) Close dialog.
5) Focus will appears at begining of editable area (text focus will be lost).
The same problem is for all dialog windows. If you try the same for text outside widget, focus will be maintained.
Because of this, it is impossible to insert image, link, and so on inside widget.
Bug is related to "editor.focus" and "focusManager.unlock" methods.
Attachments (1)
Change History (5)
comment:1 follow-up: 2 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.4.8 (GitHub - master) |
comment:2 Changed 10 years ago by
Replying to j.swiderski:
Please see http://ckeditor.com/demo#widgets - this version is much fresher (the latest in fact) then the one you are referring to.
You can check image2 widget. Neither Link nor About Dialog take away the focus.
NOTE: to allow e.g. links in a widget you need to configure ACF correctly for the widget. Please see: http://docs.ckeditor.com/#!/guide/widget_sdk_tutorial_1
I referred to inline editor. Not iframe version. Iframe version works without any problems. In my project I´m using latest version of editor and I have the same problem (again in inline version).
Changed 10 years ago by
Attachment: | 2015-04-17_1157.swf added |
---|
comment:4 Changed 10 years ago by
Please see attached file. I have checked image2 in inline editor and had no focus problems.
I'm not sure if you are talking about built-in widget like image2 or some custom one but if you have created a widget and have some focus problems, you might want to check out source code of image2 and see how it handles focus.
Please see http://ckeditor.com/demo#widgets - this version is much fresher (the latest in fact) then the one you are referring to.
You can check image2 widget. Neither Link nor About Dialog take away the focus.
NOTE: to allow e.g. links in a widget you need to configure ACF correctly for the widget. Please see: http://docs.ckeditor.com/#!/guide/widget_sdk_tutorial_1