Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Custom CSS parser for GrapesJS by using PostCSS

License

NotificationsYou must be signed in to change notification settings

GrapesJS/parser-postcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Summary

  • Plugin name:grapesjs-parser-postcss

Options

This plugin has no options

Download

  • CDN
    • https://unpkg.com/grapesjs-parser-postcss
  • NPM
    • npm i grapesjs-parser-postcss
  • GIT
    • git clone https://github.com/GrapesJS/parser-postcss.git

Usage

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],});

Development

Clone the repository

$ git clone https://github.com/GrapesJS/parser-postcss.git$cd grapesjs-parser-postcss

Install dependencies

$ npm i

Start the dev server

$ npm start

License

BSD 3-Clause

About

Custom CSS parser for GrapesJS by using PostCSS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp