Skip to content
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

Make XHR defualt option to upload a file #1507

Merged
merged 4 commits into from
Feb 1, 2018
Merged

Make XHR defualt option to upload a file #1507

merged 4 commits into from
Feb 1, 2018

Conversation

msamsel
Copy link
Contributor

@msamsel msamsel commented Jan 29, 2018

What is the purpose of this pull request?

New feature

Does your PR contain necessary tests?

All patches which 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

  • Unit tests
  • Manual tests

What changes did you make?

  • change if statement to have different default option for uploading files
  • change docs to be coherent with current default options.

close: #1365

* {@link CKEDITOR.config#fileTools_requestHeaders} option.
* * `'form'` - (default) File is uploaded by submitting a traditional `<form>` element.
* * `'form'` - File is uploaded by submitting a traditional `<form>` element.
* * `null` - The default method is used.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a remark that until version 4.9.0 form option was the only option (thus it was) used by CKEditor.

@mlewand mlewand self-requested a review February 1, 2018 20:50
@mlewand mlewand changed the title Make XHR defualt option to upload a file. Documentation update. Make XHR defualt option to upload a file Feb 1, 2018
Copy link
Contributor

@mlewand mlewand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have rebased the branch, pushed minor changes and added missing changelog entry.

@mlewand mlewand merged commit c7f4658 into major Feb 1, 2018
@mlewand mlewand deleted the t/1365 branch February 1, 2018 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File browser plugin should use XHR requests by default
2 participants