MartinPutz

Results comments of MartinPutz

@muzammilkghrix There are built-in commands to get the HTML and CSS from the editor: https://grapesjs.com/docs/api/editor.html#gethtml ```js let html = editor.getHtml(); let css = editor.getCss(); ``` Or if you really want...

@HeyWrecker I've seen something similar when no device is selected or the canvas is manipulated by external JS. Could you check the currently selected device using: https://grapesjs.com/docs/api/editor.html#getdevice ```js editor.getDevice(); ```

@HeyWrecker You could try selecting a device after you initialize the editor. ```js const editor = grapesjs.init({ ... }); editor.setDevice('tablet'); ``` Assuming you have that device added to the editor(before...

@HeyWrecker That was just an example. These are custom devices, you can call them whatever you want, and you can have pretty much as many as you want. ```js deviceManager.add('tablet',...

@Joshmamroud There might be an easier way, since GrapesJS lets you entirely customize the rendered HTML regardless of the view HTML. Related to https://github.com/artf/grapesjs/issues/252#issuecomment-325018814

@theSC0RP This is not really a problem with GrapesJS itself. The cell in GrapesJS has ```css display:table-cell; ``` property, so it tries to simulate a table layout, as far as...

@dharmatv Hi there! This is not a bug, you can achieve it by defining the styleable properties for a component. ```js editor.DomComponents.addType('customComp', { model: { defaults: { tagName: 'customComp', stylable:['color']...