Additional classes on embedded atoms not migrated

Created on 26 August 2022, about 2 years ago
Updated 3 July 2023, over 1 year ago

Problem/Motivation

I'm not sure if this is strictly related to scald atoms or not, but on the project that I am working on, there's this attribute called "data-scald-options" that can contain additional css classes. These are not migrated whithin the TransformDndAtomsToMedias. This also depends on media, because an extra step needs to be done in the text format to allow the class attribute on tag.

Proposed resolution

The proposed solution is to migrate them as well. I am providing a very basic patch for this to get other opinions, but I am pretty sure that maybe a configuration should be set and default to false to not migrate them unless told to. And also maybe the target attribute should be customizable. For now, I'll provide a basic solution.

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇷🇴Romania bbu23

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024