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

[Question]: Is it possible to get CSS excluding protected CSS? #2263

Closed
benvmatheson opened this issue Sep 10, 2019 · 1 comment
Closed

[Question]: Is it possible to get CSS excluding protected CSS? #2263

benvmatheson opened this issue Sep 10, 2019 · 1 comment

Comments

@benvmatheson
Copy link
Contributor

I'm attempting to build this:
#324

I've noticed that each time the CSS is saved, the protected CSS is prepended. This results in duplicate CSS rules:
* { box-sizing: border-box; } body { margin: 0; } *{ box-sizing:border-box; } body{ margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; }

Is it possible to fetch CSS excluding protected CSS, or will I just need to remove that manually?

@artf
Copy link
Member

artf commented Sep 14, 2019

Use this option editor.getCss({ avoidProtected: true })

@artf artf closed this as completed Sep 14, 2019
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