Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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)

2015-04-17_1157.swf (2.5 MB) - added by Jakub Ś 9 years ago.

Change History (5)

comment:1 Changed 9 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.4.8 (GitHub - master)

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

comment:2 in reply to:  1 Changed 9 years ago by janousek

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).

comment:3 Changed 9 years ago by Jakub Ś

Thanks for letting me know - I will have it re-checked.

Changed 9 years ago by Jakub Ś

Attachment: 2015-04-17_1157.swf added

comment:4 Changed 9 years ago by Jakub Ś

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy