Commit 6bcaf4f5 authored by Eric Sembrat's avatar Eric Sembrat
Browse files

'Issue #3296755 by Project Update Bot: Automated Drupal 10 compatibility...

'Issue #3296755 by Project Update Bot: Automated Drupal 10 compatibility fixes' --author="git <git@3644742.no-reply.drupal.org>"
parent 6932b619
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
name: CKEditor Font
type: module
description: This plugin adds Font Size and Font Family dropdowns that applies as inline element style.
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
package: CKEditor
dependencies:
  - drupal:ckeditor
+1 −1
Original line number Diff line number Diff line
@@ -14,6 +14,6 @@
	},
	"require": {
		"drupal-ckeditor-libraries-group/font": "^4.13.1",
		"drupal/core": "^8 || ^9"
		"drupal/core": "^9.3 || ^10"
	}
}
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ class FontCKEditorButton extends CKEditorPluginBase implements CKEditorPluginCon
  public function getButtons() {
    // Make sure that the path to the image matches the file structure of
    // the CKEditor plugin you are implementing.
    $modulePath = drupal_get_path('module', 'ckeditor_font');
    $modulePath = \Drupal::service('extension.list.module')->getPath('ckeditor_font');
    return array(
      'Font' => array(
        'label' => $this->t('Font Families'),
@@ -66,7 +66,7 @@ class FontCKEditorButton extends CKEditorPluginBase implements CKEditorPluginCon

    // Installation profiles can place libraries into a 'libraries' directory.
    if ($installProfile = \Drupal::installProfile()) {
      $profile_path = drupal_get_path('profile', $installProfile);
      $profile_path = \Drupal::service('extension.list.profile')->getPath($installProfile);
      $directories[] = "$profile_path/libraries/";
    }