getCss({ component }) returns the full CSS string for the whole editor. From the documentation it appeared it should return the CSS for just the component passed into the function.. #4346
Unanswered
SamuelVirgo
asked this question in
Q&A
Replies: 1 comment
-
I see it working properly, please create a reproducible demo of your issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I think I have misunderstood the documentation:
https://grapesjs.com/docs/api/editor.html#getcss
Here, it seems we should be able to use this function to get CSS for the selected component like this:
Due to the fact that opts.component returns "(...) the CSS of a specific Component".
However, when I test this it returns the css for the whole editor still. Can someone help me where I am going wrong?
Beta Was this translation helpful? Give feedback.
All reactions