[Question/Enhancement] How to Export CSS linked in Canvas Styles properties
See original GitHub issueHow to export the HTML/CSS in the code view / download as zip. With the stylesheets in styles.css referenced in the grapesjs canvas, but not the unused, actually i am fine with all the styles.css stylesheet, for simple API access for export.
If I add the stylesheet in init
canvas: {
styles: ['./styles.css']
}
bm.add('Table', {
label: 'Table',
category: 'Table',
content: {
type: 'table',
classes: ['table-components'],
columns: 2,
rows: 1,
//style: {width: '100%', border: '1px solid black'}
},
});
Yea, Table 😋 Thanks for the good work, let us worry about this easy issue and documenting or leave trace in issue list. Artf should focus more on other amazing features.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Extract CSS | Illustrator CC - Adobe Support
Select a specific code and select Copy Selected Style to copy it to the clipboard. Select the CSS Properties Panel menu and select...
Read more >Adding CSS & JS and Overriding the Page-Load Template
Learn how to add custom CSS and JS to your app as well as how to customize the HTML title, meta tags, and...
Read more >How do I upload custom JavaScript and CSS files to...
To upload files for the Canvas desktop application, locate the CSS file/JavaScript file headings [1]. To upload files for user content in Canvas...
Read more >Using images - Canvas API - MDN Web Docs
Until now we have created our own shapes and applied styles to them. ... Importing images into a canvas is basically a two...
Read more >CSS - Cascading Style Sheets, designing for the Web - W3C
We discuss using the style attribute in Chapter 4 , "CSS selectors," and using the link element and the @import notation in Chapter...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Yakito For now, those scripts/styles should be included manually, you can use
root
option from the export plugin:@chiqui3d definitely it shouldn’t be added to what is used for storing otherwise you will add those styles twice.