|
|
@@ -300,7 +300,7 @@ class MultirootEditorUI extends EditorUI {
|
|
|
const editingRoot = editingView.document.getRoot( editable.name );
|
|
|
const sourceElement = this.getEditableElement( editable.name );
|
|
|
|
|
|
- const placeholderText = editor.config.get( 'placeholder' ) ||
|
|
|
+ const placeholderText = editor.config.get( 'placeholder' )[ editable.name ] ||
|
|
|
sourceElement && sourceElement.tagName.toLowerCase() === 'textarea' && sourceElement.getAttribute( 'placeholder' );
|
|
|
|
|
|
if ( placeholderText ) {
|
|
|
@@ -461,7 +461,12 @@ MultirootEditor
|
|
|
'mergeTableCells'
|
|
|
]
|
|
|
},
|
|
|
- placeholder: 'Type your text here...'
|
|
|
+ placeholder: {
|
|
|
+ header: 'Header text goes here',
|
|
|
+ content: 'Type content here',
|
|
|
+ footerleft: 'Left footer content',
|
|
|
+ footerright: 'Right footer content'
|
|
|
+ },
|
|
|
} )
|
|
|
.then( newEditor => {
|
|
|
document.querySelector( '#toolbar' ).appendChild( newEditor.ui.view.toolbar.element );
|