Issue #2141Opened July 16, 2019by sarah-banyan0 reactions

how to import the external css styles,eg. boostrap.css

Question

hi, thanks for your great project. I have a problem confused recently. I want to import some react components to my projects,I changed this Jsx to html through renderToStaticMarkup method,and get the result <button type="button" class="ant-btn ant-btn-primary"><span>test</span></button>and I also import this class byimport 'antd/dist/antd.css',but it didn't seem to work, so I'd like to ask you about this question, how to import the external css styles.

Answers (1)

artfJuly 25, 20190 reactions
var editor = grapesjs.init({
  ...
  canvas: {
    styles: [
      'https://...',
      ...
    ]
  }
});

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.