BUG: CleanId function not working with MJML code
Question
CleanID is still not working for MJML code, even on latest version of grapesJS (0.16.41)
It's related to this closed issue : https://github.com/artf/grapesjs/issues/3276
htmlOpts.attributes = (mod, attrs) => {
const { id } = attrs;
console.log(attrs) // this log works well with HTML dom, but not in MJML and I don't know why
if (
id &&
id[0] === 'i' &&
!mod.get('script') &&
!mod.get('attributes').id &&
idRules.indexOf(id) < 0
) {
delete attrs.id;
}
return attrs;
};
This function is not reading MJML tags : attrs are empty, and I cannot find why...
Answers (1)
The id issue should be solved already on the latest mjml plugin release
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3778
BUG: Select options are not displaying - new anomaly
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? ChromeReproducible demo link https://github....
Issue #980
[BUG] Related with task https://github.com/artf/grapesjs/issues/873
Hello, After restoring editor from db still have some part of bug present. It seems inside of script: function () traits will have old valu...
Issue #1214
Query for issue related to 873
Previous issue Please confirm, above reported bug has been resolved. Or still having same issue. Please confirm . Same issue with slider al...
Issue #1609
Grapesjs, How to extract html/css code in view code into console log?
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.