How to avoid adding Internal or Embedded CSS (style tags) as css rule when a template is loaded in the editor? #4747
Unanswered
FaisalShaikhHA
asked this question in
Q&A
Replies: 0 comments
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.
-
<style>...</style>
. I can't use external style URL instead ofgjs-css-rules
div by grapesjs.editor.getCss()
it returns all the editor CSS along with those style tag css because these styles are added as CSS rules at the time of loading the template. I tried getting editable component CSS as well but it also returns the same CSS string.<template><wrapper><div data-gjs-type='editable'><style>...</style></div></wrapper></template>
but this style is ignored by the editor and no rule is added or only empty style tag is generated undergjs-css-rules
div. Unable to understand this behavior. Please help thanks in advance.Beta Was this translation helpful? Give feedback.
All reactions