Issue #4865💬 AnsweredOpened January 24, 2023by agreif0 reactions

'@' sign in class-attribute value of block content changes to '-' sign when using template literals

Quick answerby artf

I'll update the escape function, for now you can provide your own via this option

Read full answer below ↓

Question

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Firefox 108.0.2Reproducible demo link not possible in jsfiddleDescribe the bug grapesjs-cli - 3.0.1 grapesjs - 0.20.3 How to reproduce the bug?add a newblock with this template literal with a class attribute containing an @ signdrag the block into the work areathe following div element will be created:other possibility to reproduce: open the code with Import tool and change a class attribute to contain an @ sign. save it. And then when you repoen the Import Template dialog the @ sign is replaced by...

Answers (2)

artfJanuary 27, 2023

I'll update the escape function, for now you can provide your own via this option

GJSBlockMay 17, 2026

Thanks for reporting this, @agreif. Great question about '@' sign in class-attribute value of block content changes to '-' sign when using template literals. The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.