CodeManager.getCode method get CSS class missing #5384
Unanswered
nguyenvoanhkhoa1
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Check an example here on how to get HTML/CSS from all pages |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing an export project function.
My old method was to select each page and then get the CSS of the selected page, for example:
This code works really well for me, except for one thing, if you have a lot of pages, then select each of them, the canvas editor flick (but still acceptable).
So I changed to a new way, that loop but not select:
The result is not sustainable, it does not have enough CSS class, but the missing classes is not the same for each call.
This is my component in the editor:

And this is my component after export:

The HTML still has the class "hero", but the CSS class is missing
There are some other classes that are missing too, but each time is not the same, so weird
Thanks all.
Beta Was this translation helpful? Give feedback.
All reactions