Commit 1c5c378e authored by catch's avatar catch
Browse files

Issue #3291018 by Spokje, Wim Leers: Move...

Issue #3291018 by Spokje, Wim Leers: Move \Drupal\Tests\ckeditor5\Functional\CKEditor5QuickEditLibraryTest to the quickedit namespace/directory
parent d77a68d5
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -37,12 +37,6 @@ drupal.ckeditor5.stylesheets:
  version: VERSION
  css: []

drupal.ckeditor5.quickedit-temporary-work-around:
  deprecated: "Temporary work-around until https://www.drupal.org/project/drupal/issues/3196689 lands."
  css:
    theme:
      css/quickedit-override.css: {}

drupal.ckeditor5.codeBlock:
  dependencies:
    - core/ckeditor5.codeBlock
+0 −4
Original line number Diff line number Diff line
@@ -434,10 +434,6 @@ function ckeditor5_library_info_alter(&$libraries, $extension) {
        'theme' => array_fill_keys(array_values($css), []),
      ],
    ];

    if ($moduleHandler->moduleExists('quickedit')) {
      $libraries['drupal.ckeditor5']['dependencies'][] = 'ckeditor5/drupal.ckeditor5.quickedit-temporary-work-around';
    }
  }

  if ($extension === 'core') {
+6 −0
Original line number Diff line number Diff line
@@ -48,6 +48,12 @@ quickedit.inPlaceEditor.form:
  dependencies:
    - quickedit/quickedit

quickedit.ckeditor5-temporary-work-around:
  # "Temporary work-around until https://www.drupal.org/project/drupal/issues/3196689 lands."
  css:
    theme:
      css/editors/formattedText/ckeditor5.workaround.css: { }

quickedit.inPlaceEditor.formattedText:
  version: VERSION
  css:
+5 −0
Original line number Diff line number Diff line
@@ -101,6 +101,11 @@ function quickedit_library_info_alter(&$libraries, $extension) {

    $alter_library($libraries['quickedit'], $theme);
  }

  $moduleHandler = \Drupal::moduleHandler();
  if ($moduleHandler->moduleExists('ckeditor5')) {
    $libraries['drupal.ckeditor5']['dependencies'][] = 'quickedit/quickedit.ckeditor5-temporary-work-around';
  }
}

/**
Loading