-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Explicit Ajax helpers for new response types #4440
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.
Just one clarification regarding unit tests.
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.
LGTM 👍
One note regarding docs and custom @params - now you will see that building docs show a warning about "unknown type":
It doesn't change the resulting docs itself (it is still shown correctly AFAIS), however it's there to say something is missing and should be fixed most probably. For such occasions we have external types definition in docs JSDuck task. I have already covered that on major branch.
Rebased onto latest |
What is the purpose of this pull request?
New feature - according to #4394
Does your PR contain necessary tests?
All patches that change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.
This PR contains
Did you follow the CKEditor 4 code style guide?
Your code should follow the guidelines from the CKEditor 4 code style guide which helps keep the entire codebase consistent.
What is the proposed changelog entry for this pull request?
What changes did you make?
Give an overview…
Added two methods:
based on the current
load
method.Rename ajax load methods in tests. For those called
load
withrsponseType
set to 'text' or 'arraybuffer' - I replace them with newly createdloadText
andloadBinary
. Since it's a new API with predefinedresponseType
- tests can be based on the newest changes. Also, add issue markers for tests based onloadText
andloadBinary
.Which issues does your PR resolve?
Closes #4394