Uncaught TypeError: CKEDITOR.addCss is not a function (CK3)

Created on 15 October 2024, about 1 month ago

Problem/Motivation

Encountering a `Uncaught TypeError: CKEDITOR.addCss is not a function` for CKEdtior 3 library versions

Steps to reproduce

Enable Footnotes in `admin/config/content/ckeditor/edit/[format]` .

Note: After dragging the plugin on the editor plugin toolbar, tick the "Add Footnotes" to enable it.

Proposed resolution

Add filter check by determining CKEditor version and use "editor" variable method instead of global CKEDITOR.

Also, cleaned up css string to separate constant.

🐛 Bug report
Status

Active

Version

3.0

Component

Footnotes

Created by

🇵🇭Philippines nuevaron@gmail.com

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

Comments & Activities

Production build 0.71.5 2024