diff --git a/docs/updating/update-to-39.md b/docs/updating/update-to-39.md index d76542a4cb1..28ac50f56b0 100644 --- a/docs/updating/update-to-39.md +++ b/docs/updating/update-to-39.md @@ -81,3 +81,18 @@ ClassicEditor } } ) ``` + +### View element placeholder + +Function {@link module:engine/view/placeholder~enablePlaceholder `enablePlaceholder()`} no longer gets placeholder content as a `text` property of `options` argument. To define a value of placeholder you need to specify it as a {@link module:engine/view/placeholder~PlaceholderableElement#placeholder `placeholder` property} of the `element` which is passed into `options` object. + +```js +element.placeholder = 'Type something…'; + +enablePlaceholder( { + view: editingView, + element: element, + isDirectHost: false, + keepOnFocus: true +} ); +```