I got error with drupal 11

Original error: TypeError: Cannot read properties of undefined (reading 'previousArrow')
    at new h (find-and-replace.js?tazc8v:5:12581)

I think ckeditor 5 have update update icon to IconPreviousArrow
so change icon:e.icons.IconPreviousArrow to icon:e.IconPreviousArrow

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lazzyvn created an issue. See original summary.

nickolaj made their first commit to this issue’s fork.

nickolaj’s picture

Status: Active » Needs review

Fixed the TypeError by updating icon references in the built JS file from `e.icons.previousArrow` to `e.IconPreviousArrow`, matching the updated CKEditor 5 icon export naming convention.

  • nickolaj committed 418219eb on 2.1.x
    Issue #3576087: Fixed the TypeError by updating icon references in...
    
sujan shrestha’s picture

Status: Needs review » Fixed

Thanks @nickolaj. i have reviewed the changes and merged the merge request into the 2.1.x-dev branch.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

lazzyvn’s picture

pls add credit to us

sujan shrestha’s picture

StatusFileSize
new229.64 KB

Hi @lazzyvn, i have already updated the contribution credits on the issue, but it does not seem to be reflecting yet. Do you have any idea why this might be? i have attached a screenshot
contribution

lazzyvn’s picture

I think Drupal 11.3.3 changed the version of CKEditor; previously it used version 41, now it uses version 43.
in module plugin don't share source code so i can't tell you how to fix it
You can see my plugin https://git.drupalcode.org/project/ckeditor5_bootstrap/-/blob/1.0.x/js/c...
it must call import { IconCheck, IconCancel } from '@ckeditor/ckeditor5-icons';
and in package.json it must use

  "devDependencies": {
    "@ckeditor/ckeditor5-dev-utils": "^43.0.0",

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.