Opened 9 years ago
Closed 9 years ago
#13843 closed Bug (invalid)
Editor doesn't focus on custom widget on load
Reported by: | Vangelis | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Focus | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce
- Add a widget (with editable content) at the start of the editable content and save.
- Close the editor.
- Load the editor.
(I have attached the config that I'm using. The custom widget that I used is simplebox.)
Expected result
The editor should focus on the first editable element in the widget.
Actual result
The editor doesn't focus on the widget until the user clicks in it.
config.js
I added the following lines of code in the config file: CKEDITOR.on('instanceReady', function(e) {
e.editor.focus();
});
Change History (1)
comment:1 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.5.4 |
You have used editor focus method and not widget focus method. The editor.focus focuses main content area in which widgets are kept.
Let's say that you have one widget in main content area.
The easiest code would be:
You can use above example to get result you want (you can display objects in Firebug and find properties which allow you to identify the widget).