From ee605605bbd35b1f331a68e60435b6479d7dbac4 Mon Sep 17 00:00:00 2001 From: Jaron Gao Date: Sat, 11 May 2019 20:03:48 -0400 Subject: [PATCH] Set config.filebrowserUploadMethod to "form" - CKEditor 4.9 introduced "xhr" file uploads and also made it default - config.filebrowserUploadMethod needs to be explicitly set as "form" for URL query params to function the same as pre-4.9 CKEditor - Docs for this param: - https://github.com/galetahub/ckeditor/blob/74c188c5bb7197c67197272f55951ca1c0864cda/vendor/assets/javascripts/ckeditor/CHANGES.md#ckeditor-49 - https://github.com/ckeditor/ckeditor-dev/issues/1365 - https://github.com/ckeditor/ckeditor-dev/pull/1507/commits/4e0866c877dde58247ff5042c10a8ad3ecb0a13f --- app/assets/javascripts/ckeditor/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/ckeditor/config.js b/app/assets/javascripts/ckeditor/config.js index dc2475a4c..d0a9ee583 100644 --- a/app/assets/javascripts/ckeditor/config.js +++ b/app/assets/javascripts/ckeditor/config.js @@ -32,6 +32,7 @@ CKEDITOR.editorConfig = function( config ) config.filebrowserUploadUrl = "/ckeditor/attachment_files"; config.allowedContent = true; + config.filebrowserUploadMethod = 'form'; // Toolbar groups configuration. config.toolbar = [