[QUESTION] Removing certain css
Question
QUESTION
My site consists of various webpages like home-page, category-page, results-page etc. The css for all the pages are in a single css file (all.css). I am trying to load a single webpage (results-page) for editing by using the import plugin. Without making any changes I exported the html and css by using export plugin. I noticed that the 'certain' css properties of pages besides results-page are missing in the exported css.
I want to make few css changes in the results-page and replace the exported css file with my existing all.css . But I am unable to do so because certain css properties are deleted.
Someone please help me resolve this issue.
Answers (2)
You can put your css inline like this:
<div id="gjs" class="overflow-y max-height-50vh">
<style>
img {
width:100%;
}
</style>
</div>
Or import a .css file, like this:
grapesjs.init({
container : '#gjs',
canvas: {
styles: [
'all.css'
]
}
});
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #811
[QUESTION] CSS Gets deleted
I have a website with multiple web pages (results-page, category page, home page) and a common css file for all pages (all.css).Within this...
Issue #1141
[Question] - How to extend the existing traits and render the changes in canvas?
I am trying to write a plugin to manage all the element properties of Boostrap Blocks. If someone clicks on the button it will show button...
Issue #1059
[Question]: Load html content from a file dynamically
Hi, I need to load content from a html file from server onto editor after or while initializing editor. How this can be implemented? HTML w...
Issue #1475
[Question] adding filter to styleManager
Hi, I am trying to add a filter property to Styles. The problem that I am having is that the property demands 2 arguments: 1. The type of f...
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.