Skip to content

Exception thrown on control panel requests when using CKEditor 4.x and Footnotes 5.2.0 #36

@mmikkel

Description

@mmikkel

Describe the bug

I'm still on CKEditor 4.11.3, and after updating Footnotes from 5.1.3 to 5.2.0, the following exception is thrown on control panel requests:

yii\base\ErrorException: Declaration of verbb\footnotes\assetbundles\CkEditorAsset::registerPackage(): void must be compatible with craft\ckeditor\web\assets\BaseCkeditorPackageAsset::registerPackage(craft\web\View $view): void in /var/www/html/vendor/verbb/footnotes/src/assetbundles/CkEditorAsset.php:44
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}

I'm guessing this is due to the fix for #35, but considering CKEditor 5 is a major release (and a slightly controversial one at that), it'd probably be a good idea to if Footnotes 5.2+ is made backwards compatible w/ CKEditor 4.x, for the immediate future at least 😅

Steps to reproduce

  1. Have CKEditor 4.11.3 + Footnotes 5.2.0 installed
  2. Visit the control panel

Craft CMS version

5.9.16

Plugin version

5.2.0

Multi-site?

Yes

Additional context

CKEditor version is 4.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions