|
@@ -10,7 +10,7 @@
|
|
|
import EditorUI from '@ckeditor/ckeditor5-core/src/editor/editorui';
|
|
import EditorUI from '@ckeditor/ckeditor5-core/src/editor/editorui';
|
|
|
import enableToolbarKeyboardFocus from '@ckeditor/ckeditor5-ui/src/toolbar/enabletoolbarkeyboardfocus';
|
|
import enableToolbarKeyboardFocus from '@ckeditor/ckeditor5-ui/src/toolbar/enabletoolbarkeyboardfocus';
|
|
|
import normalizeToolbarConfig from '@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig';
|
|
import normalizeToolbarConfig from '@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig';
|
|
|
-import { attachPlaceholder, getPlaceholderElement } from '@ckeditor/ckeditor5-engine/src/view/placeholder';
|
|
|
|
|
|
|
+import { attachPlaceholder, getRootPlaceholderElement } from '@ckeditor/ckeditor5-engine/src/view/placeholder';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* The decoupled editor UI class.
|
|
* The decoupled editor UI class.
|
|
@@ -106,7 +106,7 @@ export default class DecoupledEditorUI extends EditorUI {
|
|
|
const placeholderText = editor.config.get( 'placeholder' ) || editor.sourceElement.getAttribute( 'placeholder' );
|
|
const placeholderText = editor.config.get( 'placeholder' ) || editor.sourceElement.getAttribute( 'placeholder' );
|
|
|
|
|
|
|
|
if ( placeholderText ) {
|
|
if ( placeholderText ) {
|
|
|
- const placeholderElement = getPlaceholderElement( editingRoot );
|
|
|
|
|
|
|
+ const placeholderElement = getRootPlaceholderElement( editingRoot );
|
|
|
|
|
|
|
|
attachPlaceholder( editingView, placeholderElement, placeholderText );
|
|
attachPlaceholder( editingView, placeholderElement, placeholderText );
|
|
|
}
|
|
}
|