Issue #1134πŸ’¬ AnsweredOpened May 25, 2018by kuldeepcis0 reactions

Add custom style in the style-sheet for a new class of existing block.

Quick answerby artf

You can add it in template or inside blocks. BTW check other issues before opening a new one, there are plenty of questions like this

Read full answer below ↓

Question

Hello @artf _("map") && i.add("map", { label: n.labelMap, category: n.category, attributes: { class: "fa fa-map-o" }, content: { type: "map", classes:['map-width'], // unstylable:['width'], style: { // height: "350px", // width: "auto", } } }); add a new class 'map-width' on map element, now I want to add new css for that class. can you please guide me how to add custom style in the style-sheet for that class. so it'll display in the css section when click on export. and also reflect in pink with x sign like it's added externally. please guide me Thanks in advance. :)

Answers (2)

artfβ€’ May 26, 2018

You can add it in template or inside blocks. BTW check other issues before opening a new one, there are plenty of questions like this

lock[bot]β€’ September 17, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.