CKeditor with Administration theme

Created on 17 November 2023, over 1 year ago

CKeditor is not defined

Hello, I have two errors, these errors occur when I select the dxpr theme in the administration panel and activate "Use the administration theme when editing or creating content".

What happens is that dxpr in content editing mode does not activate ckeditor for fields of type HTML Full, restricted or basic.

An error appears in the console when I only view the content and two errors if I enter content editing.

I have enable CKEditor 5 in "Text formats and editors".

Steps to reproduce

Sorry, I tried with another drupal instance to define the steps to reproduce, but I can't reproduce in another project.

If you need something I can provide it without problems.

Proposed resolution

Define the object CKEDITOR first that global.min.js use

Info of error

When opening the content with the DXPR administration theme activated:

Uncaught (in promise) ReferenceError: CKEDITOR is not defined
    at CKEditor4.addInlineEditor

When opening the content editor with the DXPR administration theme activated:

Uncaught TypeError: o(...) is not a function
    at 273 (js_mgR1oxdRtmzD99T2uvziSEIL6wuBhg2dRflt4Vl9cQk.js?
704: (e,t,o)=>{
    e.exports = o(79)("./src/core.js")
}
,
492: (e,t,o)=>{
    e.exports = o(79)("./src/engine.js")
}
,
273: (e,t,o)=>{
    e.exports = o(79)("./src/ui.js")
}
,
209: (e,t,o)=>{
    e.exports = o(79)("./src/utils.js")
}
,
434: (e,t,o)=>{
    e.exports = o(79)("./src/watchdog.js")
}
,
79: e=>{
    "use strict";
    e.exports = CKEditor5.dll
}
🐛 Bug report
Status

Active

Version

5.2

Component

Code

Created by

🇪🇸Spain nonodev96

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024