-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enablePlaceholder() API should remain backward compatible for some time #14753
enablePlaceholder() API should remain backward compatible for some time #14753
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of adjustments ad we're good to go 👍
Be sure to check tests with --production
CLI flag for testing as it might forbid using window.console
.
isDirectHost: false | ||
} ); | ||
viewRoot.placeholder = 'new placeholder'; | ||
|
||
expect( viewRoot.getChild( 0 ).getAttribute( 'data-placeholder' ) ).to.equal( 'new placeholder' ); | ||
} ); | ||
|
||
it( 'should through warning once if "text" is used as argument', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What did you mean by "should through warning once"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning should be through only once in dev console
And my assumption was correct, the test are failing on CI: https://app.travis-ci.com/github/ckeditor/ckeditor5/jobs/607359829 |
@mlewand There is one additional suggestion by @Dumluregn to perform displaying warning by Is worth to mention when you open your dev console you will see only error name with link to the documentation. What do you think? |
Yes, it makes sense @illia-stv! I missed that one. |
); | ||
/** | ||
* The "text" option in the {@link module:engine/view/placeholder~enablePlaceholder `enablePlaceholder()`} | ||
* function is already deprecated and will be removed soon. Please update your code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this new description is missing link to the migration guide that you provided below. That's very helpful so it needs to be here.
I'll add it as a part of R.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some minor docs tweaks, LGTM.
…I-should-remain-backward-compatible-for-some-time Fix (engine): Made the `enablePlaceholder()` API to remain backward compatible for the deprecation period. It will be removed in the future. Closes #14743.
Suggested merge commit message (convention)
Fix (engine): enablePlaceholder() API remain backward compatible for some time. Closes #14743.
Additional information
For example – encountered issues, assumptions you had to make, other affected tickets, etc.