GrapesJS Issues

3,464 parsed GitHub issues β€” 370 solved Β· 90 open. Search, filter and explore battle-tested answers.

336 issues found

πŸ” style-manager
#3730Aug 27, 2021by hrdkzala4 answers
0 reactions

Script tag not rendering in HTML page

I created the component as below. site_1 - is my readymade template and it has CSS and javascript. CSS loads properly with the "content" but javascript doesn't so I created component for javascript. On the HTML page, It shows the jquery file is added but doesn't work. I checked in view source. If I made any external j...

artf

Sorry but I don't understand where is your issue. You have created comp-with-js component but then you don't show where you are using it... Please, provide a reproducible demo.

mingxin-yang

script function don't work after drag the block @artf

mingxin-yang

https://grapesjs.com/docs/modules/Components-js.html#basic-scripts

#3727Aug 26, 2021by SintoDema4 answers
1 reactions

Issue on Style Import

Hi @artf, Describe the bug detailed While creating a new template using GrapesJS, I came across a scenario that, when we try to import CSS from the import modal it does not get reflected in the editor. On a blank editor, I have created a template with HTML & CSS adding to it.After that, I need to do some changes in th...

artf

Hi @javadsamiee the issue was fixed on the latest version of the preset plugin

artf

Hi @SintoDema the issue is here https://github.com/artf/grapesjs-preset-webpage/blob/3e5a9e12998c9a32b6f1199953084163678e6c17/src/commands/openImport.js#L15-L18 As you see, it updates components but doesn't clear the styles module. I don't...

javadsamiee

Hi @SintoDema the issue is here https://github.com/artf/grapesjs-preset-webpage/blob/3e5a9e12998c9a32b6f1199953084163678e6c17/src/commands/openImport.js#L15-L18As you see, it updates components but doesn't clear the styles module. I don't...

#3717Aug 21, 2021by Vikash-ra2 answers
0 reactions

Template does not load using just components

I am trying to load an existing template. I believe that it should work with either components or HTML but it seems to work only through HTML. The following code does not work but code with the corresponding HTML does. The LandingPage Json was taken from the dev toolbar panel

artf

@Vikash-ra please follow the issue template when you create one.

GJSBlock

Thanks for reporting this, @Vikash-ra. Thanks for sharing your report about Template does not load using just components. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (CodeSandbox/JSFiddl...

#3706Aug 15, 2021by momu-20161 answer
0 reactions

Css in block can not be removed when block has been removed

grapesjs version v0.16.45, i try to use the countdown plugin (https://github.com/artf/grapesjs-component-countdown),Everything is running well, when I delete the entire component via toolbar,the html and components are removed,but style and css still in localstorage. What puzzles me is that the entire component is del...

GJSBlock

Thanks for reporting this, @momu-2016. Thanks for sharing your report about css in block can not be removed when block has been removed. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (Code...

#3702Aug 13, 2021by throne19861 answer
0 reactions

HTML head tags not added to the dom

I am using [grapesjs library][1] for building web pages, I have added a custom block as per docs [here][1] when I drag the block to canvas HTML data is added but <head></head> tag is empty, Here is my code function tempOnePlugin(editor) { editor.BlockManager.add('my-first-block', { label: '<i class="fa fa-clone"></i>'...

GJSBlock

Thanks for reporting this, @throne1986. Great question about HTML head tags not added to the dom. The recommended approach with ProseMirror is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific modu...

#3699Aug 12, 2021by diegoSenra4 answers
0 reactions

Cell hovering randomly displaces from actual cell

Hi! I'm using grapesJs for e-mail editing in a project in my company, with Newsletter plugin. Everithing works very well, except for this bug i can't solve: Sometimes, when I drag blocks inside the canvas, the cell hover gets scrambled. The biggest problem is that this behavior is completely random, it can happen or n...

artf

Are you using the latest version?

diegoSenra

Using minified 0.10.7

artf

Sorry mate, it's a 4-year-old release, can't help you here. Did you try to update?

#3693Aug 11, 2021by GaikwadShubham3 answers
1 reactions

AdoptStylesheet not supported in grapesJS

Version: You can get the version by typing grapesjs.version into the console 0.17.22 Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the expected behavior? Should be able to see the web component in similar fashion as it is outside the grapesJS container Describe the bug detailed Grapesjs not abl...

artf

This issue is due to how AdoptStylesheet works and it's similar to this one from lit-element. Basically, you can't share the same CSSStyleSheet across multiple documents, so you have to recreate it manually, here below is a code for custom...

vasicvuk

Is there any solution for using lit-element components 3.X with grapesJS?

GJSBlock

Thanks for reporting this, @GaikwadShubham. The issue with AdoptStylesheet not supported in grapesJS appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifica...

#3690Aug 10, 2021by throne19861 answer
0 reactions

AppendTo not working with trait manager

I have a basic example as follow HTML <div id="gjs"> <div class="traits-container"></div> <div style="padding: 25px">Hello World!!!</div> </div> <h1> Append trait manager </h1> <div class="traits-container"></div> Js const editor = grapesjs.init({ container: '#gjs', fromElement: true, height: '100%', storageManager: f...

GJSBlock

Thanks for reporting this, @throne1986. Great question about appendTo not working with trait manager. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific...

#3688Aug 10, 2021by mingxin-yang2 answers
0 reactions

How to customize a component

I read this document https://grapesjs.com/docs/modules/Components.html#define-custom-component-type and tried to write the following code. I want to make mj-body impossible to delete: But I don't see the effect, please help me

artf

Do this isComponent: el => (el.tagName || '').toLowerCase() === 'mj-body',

GJSBlock

Thanks for reporting this, @mingxin-yang. Great question about How to customize a component. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module L...

#3685Aug 9, 2021by throne19861 answer
0 reactions

ShowStylesOnChange is not working

Guys, I am new to grapes, I would like on component change show the Style Manager, here is my component and how I add it, also I would like to video type to asset manager Unfortunately, neither Style Manager nor video type is added, can someone tell me the right way to add these things to my configuration? I am using...

GJSBlock

Thanks for reporting this, @throne1986. Great question about showStylesOnChange is not working. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific modul...

Browse all topics