[QUESTION] How to overwrite classes manager?
Question
Hi @artf ,
Is there a way to modify the attribute where the classes are placed? (default: class)
is there also a way to change the position and tag of the styles? (default: <style>)
Answers (1)
Is there a way to modify the attribute where the classes are placed? (default: class)
Not really, the only thing you can do now is to extend methods from base components. This is where is assigned in the model (used in the final HTML code) https://github.com/artf/grapesjs/blob/02ceecc87dc2116435cab1c65014fab7d6a05293/src/dom_components/model/Component.js#L422
and here for the View (when is rendered in canvas) https://github.com/artf/grapesjs/blob/02ceecc87dc2116435cab1c65014fab7d6a05293/src/dom_components/view/ComponentView.js#L219
is there also a way to change the position and tag of the styles? Nope, styles are handled (imported inside CssComposer) and removed internally by the editor
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1177
[QUESTION] Multiple identical classes usage
Hey @artf , I have a question around the Style Manager. Let's say we have multiple elements with row classes inside html, is there any poss...
Issue #1307
Question: To stop dynamically generated classes in grapes Editor
Hi @artf is there any Way to stop dynamically generating classes on reloading editor. let say when i add my custom class i.e "my_class" to...
Issue #1318
Question: How to enable Event of mouse to increase value of input
hi @artf I want to know Is there any way to enable input mouse scroller in style manager as you can my screenshot. i want to initalize scro...
Issue #2039
[QUESTIONS] How can I update the styles of a class?
Hi, so I have this button, whose style changes when hovered, a new class is added: <button class="btn btnhovered">Button 1</button> <button...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.