-
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
Embed images pasted from Word in Safari #1976
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
15c8fda
New feature bloburl to base64 converter in PFW.
d6e2d48
Remove unnecessary change in ajax plugin
4c40476
Unit tests.
2e80c60
Update tests, provide docs for ajax. Modify converting blob to base64…
a85001d
Move blob conversion to tools add unit test for new tools.
3365561
Remove wrong test case.
ba8371a
Update unit test, add manual tests.
f5c50c3
Changelog entry.
6a68173
Review fixes: update changelog entry, refactor CKEDITOR.ajax.
7a0ac51
Review fixes, provide alias for CKEDITOR.tools.array, provide descrip…
b1305d2
Move convertBlobUrlToBase64 into ajax plugin.
Comandeer c958fd7
Refactoring of Ajax plugin.
Comandeer dc20773
Update issue references.
Comandeer d6d2fa5
Refactor tests.
Comandeer 5ec567b
Fix undo integration.
Comandeer 29940fa
Add unit test for multiple blobs.
Comandeer 12076d7
Remove redundant white space.
Comandeer 25f0833
Update changelog entry.
Comandeer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Isn't it any other way to not require
ajax
for PfW? It looks a little bit strange. I wonder ifFileReader
would be an alternative here.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.
I've considered using
FileTools
here. UnfortunatelyFileTools
contains logic responsible for uploading files to the server, there is no methods helping downloading files from given URL, whereAjax
has it and only requires to add new file type to support. That's it was chosen here. I could extendFileTools
, with new functions, but this seems like new separate task, or hide completely XHR inside PFW and do not rely onAjax
plugin.Using
Ajax
seems to be most convenient and time efficient for me.@mlewand WDYT? Should we require Ajax in PFW or use some solution?
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.
@Comandeer what are the downsides of using
ajax
plugin for this case? Using FileReader just for sake of using it results with more code to worry about.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.
@mlewand it wasn't exactly a downside, I just felt that current use of ajax plugin is inappropriate, but I haven't spend much time on it as whole fix wasn't working for me. You're comment about using plugin in core explains my anxiety ;)