Add CKEditor support for ActiveStorage

ActiveStorage support was added to CKEditor in version 5.1.0. However,
we can't upgrade to version 5.0.0 or later because it only supports
loading CKEditor via CDN.

So we're copying the code related to ActiveStorage instead. I tried to
move it to the `vendor/` folder, but couldn't find a way to load it from
there and if I found one I wouldn't be sure it'd work on production
environments.
This commit is contained in:
Javi Martín
2021-07-26 01:07:40 +02:00
parent 73a0a21001
commit f412ab2c9a
2 changed files with 74 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ AllCops:
DisplayStyleGuide: true
Exclude:
- "db/schema.rb"
- "lib/ckeditor/backend/active_storage.rb"
DisabledByDefault: true
Bundler/DuplicatedGem: