|
|
@@ -126,10 +126,10 @@ describe( 'ClassicEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- it( 'sets placeholder from "placeholder" attribute of a passed element', () => {
|
|
|
+ it( 'sets placeholder from the "data-placeholder" attribute of a passed element', () => {
|
|
|
const element = document.createElement( 'div' );
|
|
|
|
|
|
- element.setAttribute( 'placeholder', 'placeholder-text' );
|
|
|
+ element.dataset.placeholder = 'placeholder-text';
|
|
|
|
|
|
return VirtualClassicTestEditor
|
|
|
.create( element, {
|
|
|
@@ -144,10 +144,10 @@ describe( 'ClassicEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- it( 'uses editor.config.placeholder rather than "placeholder" attribute of a passed element', () => {
|
|
|
+ it( 'uses editor.config.placeholder rather than the "data-placeholder" attribute of a passed element', () => {
|
|
|
const element = document.createElement( 'div' );
|
|
|
|
|
|
- element.setAttribute( 'placeholder', 'placeholder-text' );
|
|
|
+ element.dataset.placeholder = 'placeholder-text';
|
|
|
|
|
|
return VirtualClassicTestEditor
|
|
|
.create( element, {
|