diff --git a/packages/ckeditor5-editor-balloon/src/ballooneditorui.ts b/packages/ckeditor5-editor-balloon/src/ballooneditorui.ts index f34f456b430..07d1c9887df 100644 --- a/packages/ckeditor5-editor-balloon/src/ballooneditorui.ts +++ b/packages/ckeditor5-editor-balloon/src/ballooneditorui.ts @@ -109,16 +109,14 @@ export default class BalloonEditorUI extends EditorUI { const editor = this.editor; const editingView = editor.editing.view; const editingRoot = editingView.document.getRoot()!; - const placeholder = editor.config.get( 'placeholder' ); - let placeholderText; if ( placeholder ) { - placeholderText = typeof placeholder === 'string' ? placeholder : placeholder[ editingRoot.rootName ]; - } + const placeholderText = typeof placeholder === 'string' ? placeholder : placeholder[ editingRoot.rootName ]; - if ( placeholderText ) { - editingRoot.placeholder = placeholderText; + if ( placeholderText ) { + editingRoot.placeholder = placeholderText; + } } enablePlaceholder( {