|
|
@@ -55,7 +55,11 @@ export default class InlineEditorUI {
|
|
|
|
|
|
// https://github.com/ckeditor/ckeditor5-editor-inline/issues/4
|
|
|
view.listenTo( editor.editing.view, 'render', () => {
|
|
|
- view.panel.pin( panelOptions );
|
|
|
+ // Don't pin if the panel is not already visible. It prevents the panel
|
|
|
+ // showing up when there's no focus in the UI.
|
|
|
+ if ( view.panel.isVisible ) {
|
|
|
+ view.panel.pin( panelOptions );
|
|
|
+ }
|
|
|
} );
|
|
|
|
|
|
// Setup the editable.
|