8
0
Эх сурвалжийг харах

Docs: Editor placeholder configuration via an attribute should be possible for <textarea> element only.

Aleksander Nowodzinski 6 жил өмнө
parent
commit
7253be04dd

+ 3 - 4
packages/ckeditor5-core/src/editor/editorconfig.jsdoc

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