Coder Social home page Coder Social logo

parser-postcss's Issues

Enhancing the package to ensure seamless compatibility with the latest version of grapesjs

Currently, there is an issue with using this package with the newer version of grapesjs. This version has undergone significant changes and upgrades which have resulted in compatibility issues.

### Old Code: Which is having issue
import grapesjs from 'grapesjs';
declare const plugin: grapesjs.Plugin;
export {
plugin as default,
};
export {};

### New Code: Which will fix the issue
import { Plugin } from 'grapesjs';
declare const plugin: Plugin;
export {
plugin as default,
};
export { };

Different result data format

PostCss and BrowserCssParser in base grapesjs return different data format

PostCss example

{
       selectors: '.selector',
       styles: '....',
       atRule: '.....',
       params: '.....'
}

Browser

{
         selectors: [],
         selectorsAdd: '.selector',
         style: '...',
         atRuleText: '.....',
         mediaText: '.....'
}

Could you plan to unificate formats?

Have some problems when I try add content in components like
It sometimes drop media query or some styles

this.model.replaceWith('<div class="test">Test</div><style>.test {}</style>')

[Question] use postCSS plugins

Thanks in advanced @artf for develop awesome grapesJS library and this kind of plugins.

What would be the way to setup post CSS plugins with this plugin?
P.S. - I'm trying to configure Tailwind CSS with GrapesJS.

Css parser usage.

So I am currently trying to implement nested media CSS styles and seems to not work via string. I'm just struggling to understand how to use this plugin correctly. There is no documentation on how to use it properly and just a bit confused. See i can manage to also parse some of the custom CSS to an array but then there also seems to be no option to add the cssRules via an array? please help me with how to properly import CSS Rules with this tool. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.