- Notifications
You must be signed in to change notification settings - Fork25
Custom CSS parser for GrapesJS by using PostCSS
License
NotificationsYou must be signed in to change notification settings
GrapesJS/parser-postcss
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This plugin enables custom CSS parser viaPostCSS. If you import templates from HTML/CSS or embed custom codes (eg. by usinggrapesjs-custom-code plugin) you definitely need to use this one to avoid issues with styles,check here why.
Requires GrapesJS v0.14.33 or higher
- Plugin name:
grapesjs-parser-postcss
This plugin has no options
- CDN
https://unpkg.com/grapesjs-parser-postcss
- NPM
npm i grapesjs-parser-postcss
- GIT
git clone https://github.com/GrapesJS/parser-postcss.git
Directly in the browser
<linkhref="https://unpkg.com/grapesjs/dist/css/grapes.min.css"rel="stylesheet"/><scriptsrc="https://unpkg.com/grapesjs"></script><scriptsrc="path/to/grapesjs-parser-postcss.min.js"></script><divid="gjs"></div><scripttype="text/javascript">vareditor=grapesjs.init({container :'#gjs',// ...plugins:['grapesjs-parser-postcss'],});</script>
Modern javascript
importgrapesjsfrom'grapesjs';importparserPostCSSfrom'grapesjs-parser-postcss';consteditor=grapesjs.init({container :'#gjs',// ...plugins:[parserPostCSS],});
Clone the repository
$ git clone https://github.com/GrapesJS/parser-postcss.git$cd grapesjs-parser-postcssInstall dependencies
$ npm i
Start the dev server
$ npm start
BSD 3-Clause
About
Custom CSS parser for GrapesJS by using PostCSS
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.