ubc-web-services / ubc_ckeditor_widgets

Adds some common widgets to CKeditor
0 stars 2 forks source link

ubc_ckeditor_widgets

A Drupal module to add some common widgets to CKeditor

Working with the javascript

Plugin source should be added to js/ckeditor5_plugins/{pluginNameDirectory}/src and the build tools expect this directory to include an index.js file that exports one or more CKEditor 5 plugins. Note that requiring index.js to be inside {pluginNameDirectory}/src is not a fixed requirement of CKEditor 5 or Drupal, but a requirement of this starter template that can be changed in webpack.config.js as needed.

In the module directory, run yarn install to set up the necessary assets. The initial run of install may take a few minutes, but subsequent builds will be faster.

After installing dependencies, plugins can be built with yarn build or yarn watch. They will be built to js/build/{pluginNameDirectory}.js. co

CKEditor 5 widgets

Goals:

Version 4 widget repos:

  1. https://github.com/ubc-web-services/ubc_ckeditor_widgets/tree/vanilla-js
  2. https://github.com/ubc-web-services/ubc-column-options-widget
  3. https://github.com/ubc-web-services/ubc-color-box-widget

CKE 4 widgets [CKE 5 widget status]:

Net new CKE5 widgets:

CKEditor API

Drupal resources