Move helper functions necessary for attaching the editor into a globally available scope

Created on 6 October 2021, about 3 years ago
Updated 18 March 2024, 9 months ago

Really awesome to see CKEditor5 coming to Drupal!! Quick thought about making the library easier to extend from other modules:

Problem/Motivation

Currently, several functions necessary for attaching the CKEditor5 editor (selectPlugins(), processConfig(), etc.) are only available within the ckedtor5.js closure. It would be nice to be able to call the attach method from 3rd party libraries, without needing to copy over those helper functions.

Steps to reproduce

n/a

Proposed resolution

Move required helper functions into the Drupal.editors.ckeditor5 object (note that current ckeditor in core does this -- see Drupal.editors.ckeditor._loadExpertnalPlugins()).

Remaining tasks

Contribute patch / review / test / discuss.

User interface changes

None.

API changes

Key helper functions will be available in Drupal.editors.ckeditor5.

Data model changes

None.

Feature request
Status

Closed: works as designed

Version

10.3

Component
CKEditor 5 

Last updated 2 days ago

Created by

🇺🇸United States justin2pin

Live updates comments and jobs are added and updated live.
  • API addition

    Enhances an existing API or introduces a new subsystem. Depending on the size and impact, possibly backportable to earlier major versions.

  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024