How to load a component using json same as we load a project/page? #4785
-
For loading the project, we use
My custom components have component-related styles defined and on each save it gets duplicated because the editor loads components styles first and then I load saved CSS using editor.addStyle. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not sure how you structured your save logic as it sounds like you're loading stuff twice. Anyway, instead of |
Beta Was this translation helpful? Give feedback.
I'm not sure how you structured your save logic as it sounds like you're loading stuff twice. Anyway, instead of
editor.addStyle
try to useeditor.Css.addRules
API