CKEDITOR 5: Not able to read the custom attributes set on <drupal-entity>

Created on 26 October 2023, about 1 year ago
Updated 28 March 2024, 8 months ago

Problem/Motivation

Right now there is no way to read the existing attributes set on which are custom built.
At this moment there are only predefined attributes which are readable on ckeditor but not all:

E.g: <drupal-entity data-entity-url-title data-no-margin data-entity-url-target> with Ckeditor 4

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

CKEditor integration

Created by

🇮🇳India vakulrai

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

Comments & Activities

  • Issue created by @vakulrai
  • 🇺🇸United States dave reid Nebraska USA

    I would recommend custom attributes to be injected in the data-embed-settings instead of their own attributes. You get the JSON ecoding for free and you don't need to add allowed attributes to your filters.

  • 🇮🇳India vakulrai

    Hi @dave Thank you for the suggestions.

    Actually the problem that we are facing is for existing content where we have those attributes set already like :
    <drupal-entity data-entity-url-title data-no-margin data-entity-url-target>

    now the problem is when we move to CKE5 , the users are not able to see the changes controlled by the attributes above, as they were not moved under
    data-entity-embed-display-settings automatically .

    The idea is there should be a way to migrate the existing attributes to data-entity-embed-display-settings to support the existing functionality.

    Thank you !

  • 🇮🇳India vakulrai

    Updating the patch for D10 compatability.

Production build 0.71.5 2024