Merge pull request #3976 from rockandror/deactivate-ckeditor-file-attachment

Deactivate ckeditor file attachments feature
This commit is contained in:
Javier Martín
2020-04-18 12:38:31 +02:00
committed by GitHub
2 changed files with 11 additions and 4 deletions

View File

@@ -8,13 +8,9 @@ CKEDITOR.editorConfig = function( config )
config.forcePasteAsPlainText = true;
config.filebrowserBrowseUrl = "/ckeditor/attachment_files";
config.filebrowserFlashBrowseUrl = "/ckeditor/attachment_files";
config.filebrowserFlashUploadUrl = "/ckeditor/attachment_files";
config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
config.filebrowserImageBrowseUrl = "/ckeditor/pictures";
config.filebrowserImageUploadUrl = "/ckeditor/pictures";
config.filebrowserUploadUrl = "/ckeditor/attachment_files";
config.filebrowserUploadMethod = "form";
config.allowedContent = true;

View File

@@ -30,4 +30,15 @@ describe "CKEditor" do
expect(page).to have_css "img[src$='clippy.jpg']"
end
scenario "cannot upload attachments through link tab", :js do
login_as(create(:administrator).user)
visit new_admin_site_customization_page_path
find(".cke_button__link").click
expect(page).to have_css(".cke_dialog")
expect(page).not_to have_link "Upload"
expect(page).not_to have_link "Browse Server"
end
end