Loading core/modules/ckeditor5/ckeditor5.api.php +2 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,8 @@ * - 'filter': a filter that must be enabled * - 'imageUploadStatus': TRUE if image upload must be enabled, FALSE if it * must not be enabled * - 'requiresConfiguration': a subset of the configuration for this plugin * that must match (exactly) * - 'plugins': a list of CKEditor 5 Drupal plugin IDs that must be enabled * * All of these can be defined in YAML or annotations. A given plugin should Loading core/modules/ckeditor5/ckeditor5.ckeditor5.yml +21 −0 Original line number Diff line number Diff line Loading @@ -430,6 +430,27 @@ ckeditor5_image: toolbarItem: uploadImage imageUploadStatus: true ckeditor5_imageResize: ckeditor5: plugins: - image.ImageResize config: image: resizeUnit: '%' resizeOptions: - name: 'resizeImage:original' value: null toolbar: [resizeImage] drupal: label: Image resize class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize elements: false conditions: requiresConfiguration: allow_resize: true plugins: [ckeditor5_image] ckeditor5_imageCaption: ckeditor5: plugins: Loading core/modules/ckeditor5/config/schema/ckeditor5.schema.yml +11 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,17 @@ ckeditor5.plugin.ckeditor5_heading: Choice: callback: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading::validChoices # Plugin \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize ckeditor5.plugin.ckeditor5_imageResize: type: mapping label: Image Resize mapping: allow_resize: type: boolean label: 'Allow resize' constraints: NotNull: [] ckeditor5.plugin.ckeditor5_sourceEditing: type: mapping label: Source Editing Loading core/modules/ckeditor5/js/ckeditor5.es6.js +4 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,10 @@ return Object.entries(config).reduce((processed, [key, value]) => { if (typeof value === 'object') { // Check for null values. if (!value) { return processed; } if (value.hasOwnProperty('func')) { processed[key] = buildFunc(value); } else if (value.hasOwnProperty('regexp')) { Loading core/modules/ckeditor5/js/ckeditor5.js +4 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len value = _ref2[1]; if (_typeof(value) === 'object') { if (!value) { return processed; } if (value.hasOwnProperty('func')) { processed[key] = buildFunc(value); } else if (value.hasOwnProperty('regexp')) { Loading Loading
core/modules/ckeditor5/ckeditor5.api.php +2 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,8 @@ * - 'filter': a filter that must be enabled * - 'imageUploadStatus': TRUE if image upload must be enabled, FALSE if it * must not be enabled * - 'requiresConfiguration': a subset of the configuration for this plugin * that must match (exactly) * - 'plugins': a list of CKEditor 5 Drupal plugin IDs that must be enabled * * All of these can be defined in YAML or annotations. A given plugin should Loading
core/modules/ckeditor5/ckeditor5.ckeditor5.yml +21 −0 Original line number Diff line number Diff line Loading @@ -430,6 +430,27 @@ ckeditor5_image: toolbarItem: uploadImage imageUploadStatus: true ckeditor5_imageResize: ckeditor5: plugins: - image.ImageResize config: image: resizeUnit: '%' resizeOptions: - name: 'resizeImage:original' value: null toolbar: [resizeImage] drupal: label: Image resize class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize elements: false conditions: requiresConfiguration: allow_resize: true plugins: [ckeditor5_image] ckeditor5_imageCaption: ckeditor5: plugins: Loading
core/modules/ckeditor5/config/schema/ckeditor5.schema.yml +11 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,17 @@ ckeditor5.plugin.ckeditor5_heading: Choice: callback: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading::validChoices # Plugin \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize ckeditor5.plugin.ckeditor5_imageResize: type: mapping label: Image Resize mapping: allow_resize: type: boolean label: 'Allow resize' constraints: NotNull: [] ckeditor5.plugin.ckeditor5_sourceEditing: type: mapping label: Source Editing Loading
core/modules/ckeditor5/js/ckeditor5.es6.js +4 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,10 @@ return Object.entries(config).reduce((processed, [key, value]) => { if (typeof value === 'object') { // Check for null values. if (!value) { return processed; } if (value.hasOwnProperty('func')) { processed[key] = buildFunc(value); } else if (value.hasOwnProperty('regexp')) { Loading
core/modules/ckeditor5/js/ckeditor5.js +4 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len value = _ref2[1]; if (_typeof(value) === 'object') { if (!value) { return processed; } if (value.hasOwnProperty('func')) { processed[key] = buildFunc(value); } else if (value.hasOwnProperty('regexp')) { Loading