Commit 1388608b authored by Wim Leers's avatar Wim Leers
Browse files

Issue #3306630: Add `ckeditor/ckeditor` asset library, and provide BC layer...

Issue #3306630: Add `ckeditor/ckeditor` asset library, and provide BC layer for `core/ckeditor` asset library for CKEditor 4 contrib modules.
parent b91c0d56
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
ckeditor:
  remote: https://github.com/ckeditor/ckeditor4
  version: "4.18.0"
  license:
    name: GNU-GPL-2.0-or-later
    url: https://raw.githubusercontent.com/ckeditor/ckeditor4/4.18.0/LICENSE.md
    gpl-compatible: true
  js:
    vendor/ckeditor.js: { preprocess: false, minified: true }

drupal.ckeditor:
  version: VERSION
  js:
@@ -12,7 +22,7 @@ drupal.ckeditor:
    - core/drupalSettings
    - core/drupal.debounce
    - core/drupal.displace
    - core/ckeditor
    - ckeditor/ckeditor
    - editor/drupal.editor

drupal.ckeditor.plugins.drupalimagecaption:
@@ -54,7 +64,7 @@ drupal.ckeditor.admin:
    - core/internal.backbone
    - core/drupal.dialog
    - core/drupal.announce
    - core/ckeditor
    - ckeditor/ckeditor
    - core/sortable
    - editor/drupal.editor.admin
    # Ensure to run after core/drupal.vertical-tabs.
+6 −0
Original line number Diff line number Diff line
@@ -188,6 +188,12 @@ function ckeditor_library_info_alter(&$libraries, $extension) {
    $query_string = \Drupal::state()->get('system.css_js_query_string', '0');
    $libraries['drupal.ckeditor']['drupalSettings']['ckeditor']['timestamp'] = $query_string;
  }
  // Add an alias to keep "core/ckeditor" working if it doesn't exist already.
  if ($extension === 'core' && empty($libraries['ckeditor'])) {
    $libraries['ckeditor'] = [
      'dependencies' => ['ckeditor/ckeditor'],
    ];
  }
}

/**

vendor/CHANGES.md

0 → 100644
+2182 −0

File added.

Preview size limit exceeded, changes collapsed.

vendor/LICENSE.md

0 → 100644
+1436 −0

File added.

Preview size limit exceeded, changes collapsed.

vendor/SECURITY.md

0 → 100644
+10 −0
Original line number Diff line number Diff line
# Reporting a security issues

If you believe you have found a security issue in the CKEditor 4 software, please contact us immediately.

When reporting a potential security problem, please bear this in mind:

*   Make sure to provide as many details as possible about the vulnerability.
*   Please do not disclose publicly any security issues until we fix them and publish security releases.

Contact the security team at security@cksource.com. As soon as we receive the security report, we will work promptly to confirm the issue and then to provide a security fix.
Loading