Attach javascript and CSS to embedded content preview

Created on 20 September 2023, about 1 year ago
Updated 17 April 2024, 5 months ago

Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain nuez Madrid, Spain

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

Comments & Activities

  • Issue created by @nuez
  • πŸ‡ΊπŸ‡ΈUnited States johnny5th

    I'm interested in lending a hand with this module, as I'd like to use it heavily on our new website. I'm effectively wanting to replace Paragraphs for ease of content authoring.

    I've done a bit of research on this particular issue, but I'm wondering if you have an idea of how you'd like it to be implemented.

    Are you wanting to dynamically inject a component's css/js when it is created, or would you be fine with appending to the internal.drupal.ckeditor5 library?

    On my project I'm probably going to have a [component].base.css, [component].theme.css, and [component].editor.css file, and only inject the editor variant (that includes the base file) into the editor library. As a way to get started, I'm just going to include all of my editor files in the ckeditor5-stylesheets key in my component module's info file.

Production build 0.71.5 2024