Issue #1505Opened October 11, 2018by himanshubudhlakoti0 reactions

adding row and sections not working

Question

i am integrating grapejs with angular6. but it is not working means it is not showing on blocks i am using following code

 editor = grapesjs.init({
      autorender: 0,
      container: '#gjs',
      components: '<div class="txt-red"></div>',
      style: '.txt-red{color: red}',


}) 
let bm =  editor.BlockManager
bm.add('the-row-block', {
  label: '2 Columns',
category:'Basic',
  content: '<div class="row" data-gjs-droppable=".row-cell" data-gjs-custom-name="Row">' +
      '<div class="row-cell" data-gjs-draggable=".row"></div>' +
      '<div class="row-cell" data-gjs-draggable=".row"></div>' +
    '</div>',
});

Answers (3)

mararn1618October 11, 20180 reactions

I would suggest that you upload an example to https://www.jsfiddle.net. This does not seem enough to give an answer.

artfOctober 12, 20180 reactions

You should add the style

content: `<div class="row">..
	</div>
	<style>
		.row {
		...
	</style>`,
lock[bot]October 12, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.