Separate Ckeditor 4 in a submodule

Created on 3 May 2023, over 1 year ago
Updated 9 May 2023, over 1 year ago

Problem/Motivation and Steps to reproduce

It appears that not only does Augmentor only support CKeditor 4. It's actually dependent upon CKeditor 4 being active on the pages on which there is an Augmentor edit form widget.

I tried these variations in a clean install:

  • CKeditor 4 enabled, but not selected as the editor for a formatted textarea element.
  • CKeditor 4 and 5 enabled, but CKeditor 5 selected as the editor.
  • CKeditor 4 enabled, but no editor selected.
  • CKeditor not installed at all.
  • CKeditor 4 enabled and selected as the editor for at least one textarea.

The only variation that works is the last one. If CKeditor 4 is not loaded on a page that has an Augmentor widget, Augmentor will either hang or abort when the widget button is clicked and the following JavaScript error is thrown:

[Error] ReferenceError: Can't find variable: CKEDITOR

Proposed resolution

Separate the Ckeditor 4 integration into his own submodule and create a update_N function to enable the module so we don't break any current setup for the sites using this module.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan eleonel Itoshima πŸ‡―πŸ‡΅

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

Comments & Activities

Production build 0.71.5 2024