Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid removing specific selectors #44

Open
VanShane opened this issue Nov 4, 2022 · 1 comment
Open

Avoid removing specific selectors #44

VanShane opened this issue Nov 4, 2022 · 1 comment

Comments

@VanShane
Copy link

VanShane commented Nov 4, 2022

Hi, I started using your plugin which was exactly what we were looking for. But my use case for grapesjs is quite specific, when I save the generated code I don't store css elements with selectors like body, *, etc..

I was wondering if there is a way to avoid removing these when deleting css in the editor, without removing the funcitonnality, I still want people to be able to write their own css and remove theirs. But I don't want them to remove the defaults.

(in red should not be removed)
image

@Ju99ernaut
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants