Bladeren bron

Docs: Because the placeholder attribute is invalid for non–input elements, data-placeholder should be used instead (see ckeditor/ckeditor5#1517).

Aleksander Nowodzinski 6 jaren geleden
bovenliggende
commit
38cfe94aa9
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      packages/ckeditor5-core/src/editor/editorconfig.jsdoc

+ 2 - 2
packages/ckeditor5-core/src/editor/editorconfig.jsdoc

@@ -187,11 +187,11 @@
  *			::before
  *		</p>
  *
- * **Note**: Placeholder text can also be set using the `placeholder` attribute of an element passed to
+ * **Note**: Placeholder text can also be set using the `data-placeholder` attribute of an element passed to
  * the `create()` method, for instance to
  * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}.
  *
- * **Note**: This configuration has precedence over the value of the `placeholder` attribute of a DOM
+ * **Note**: This configuration has precedence over the value of the `data-placeholder` attribute of a DOM
  * element passed to the `create()` method.
  *
  * See the {@glink features/placeholder "Editor placeholder" guide} for more information and live examples.