Unverified Commit 9fb3d6b7 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Issue #3303217 by e0ipso: Allow embedding components in the wysiwyg editor

parent d35c13a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,7 +2,8 @@ name: 'Component Libraries: Blocks'
description: Allows turning CL Components into configurable blocks.
type: module
dependencies:
  - cl_components:cl_components
  - drupal:block
  - cl_components:cl_components
  - embed:embed (>= 8.x-1.5)
core: 8.x
core_version_requirement: ^8 || ^9 || ^10
+1 −1
Original line number Diff line number Diff line
settings:
  css:
    component:
      src/assets/css/settings.css: { }
      css/settings.css: { }
+8 −0
Original line number Diff line number Diff line
@@ -5,3 +5,11 @@ cl_block.settings:
    _form: 'Drupal\cl_block\Form\SettingsForm'
  requirements:
    _permission: 'administer site configuration'

cl_block.dialog:
  path: '/cl-block/dialog/{editor}/{embed_button}'
  defaults:
    _form: '\Drupal\cl_block\Form\ClBlockDialog'
    _title: 'Embed CL Component'
  requirements:
    _embed_button_editor_access: 'TRUE'
+3 −0
Original line number Diff line number Diff line
@@ -5,3 +5,6 @@ services:

  cl_block.form_generator:
    class: SchemaForms\Drupal\FormGeneratorDrupal

  Drupal\cl_block\Render\ComponentBlockRenderer:
    arguments: ['@renderer', '@token', '@Drupal\cl_components\Component\ComponentDiscovery']
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
    "require": {
        "php": ">=8.1",
        "ext-json": "*",
        "ext-dom": "*",
        "e0ipso/schema-forms": "^2.2"
    }
}
Loading