Issue #2573πŸ’¬ AnsweredOpened February 17, 2020by rastaprime200 reactions

Get all related CSS Rules from mulit-level CSS Selectors

Quick answerby artf

This is the command I use in Grapedrop to get all the CSS from a component

Read full answer below ↓

Question

Hi @artf Hope you are doing well. I've been cracking on this matter for the past few days now, I've been searching whether I got the same scenario with the others, but unfortunately, I can't find any solutions that can solve my problem, so I decided to raise an issue ticket. I hope I will make sense. So I have a 'Save Block/Component' feature that I need to grab the HTML and CSS of the selected component. I can easily grab the HTML of the selected component with its child elements. by doing const blockHTML = block.toHTML(); that's working fine. However, my problem lies on the CSS rules of the...

Answers (2)

artfβ€’ March 7, 2020

This is the command I use in Grapedrop to get all the CSS from a component

rastaprime20β€’ March 7, 2020

Hi @artf

Thank you so much for your response! I will try this out, and let you know if I run into any problems. I really appreciate this.

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 β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.