1
votes

Someone know how to use the CKEditor focus manager?

I need to keep the focus on the current editor session when I click on several DOM elements?

Look at this page

The three column under the slider are editable.

Imagine that I'm writing in the first column. When I want to insert a youtube video I past a youtube URL in the text field above the slider, but when I click on the text input field I lose the editor focus. So I have to click again on editor and then I can push the button "insert media".

Is possible with FocusManager to keep focus on the current editor when I click on some page elements?

Thank you

1

1 Answers

2
votes

Use editorInstance.focusManager.add() method. This should solve your problem.