GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#3718August 21, 2021by Abhisheknanda13444631 answer
0 reactions

Override Drag functions

Hi @artf I want to override the Drag function of . As, of now we have ability to move freely over the canvas and if move anywhere in the desktop it will not be the same in the other mobile and table device. Also It's is on pixels i want to make it in percentage to make it responsive in all the screen. Could you please...

artf

You have to extend the ComponentDrag command

#3717August 21, 2021by Vikash-ra1 answer
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.

#3715August 20, 2021by mingxin-yang2 answers
0 reactions

How to add a click event

This is my custom block code: I want to add a click event to the button after adding it to the canvas, and when I click it, I can get the content in the mj-text

mingxin-yang

@artf

artf

@mingxin-yang you have to extend the view of the mj-button Component

#3714August 18, 2021by ltenti1 answer
0 reactions

Partial parse

Discussed in https://github.com/artf/grapesjs/discussions/3711 <div type='discussions-op-text'> <sup>Originally posted by ltenti August 17, 2021</sup> Hi everyone, I'm wondering how to address this kind of scenario:I have to allow the users of my application to edit a webpagethe webpage has some fixed part that the us...

artf

https://github.com/artf/grapesjs/discussions/3711#discussioncomment-1234837

#3713August 18, 2021by shkhalid2 answers
1 reactions

Stored components with script can not be rendered properly

I am facing some problem when try to save some components which includes some scripts and reload the page the components are not rendered properly. It's showing empty boxes. Example: When i try to save a chart component from jvas28/grapesjs-echarts and reload the page i am getting this <img width="1438" alt="Screen Sh...

shkhalid

Thanks @artf! Finally i was able to figure it out The problems was in tagVarStart and tagVarEnd. After commenting it out it starts working

artf

Hey @shkhalid thanks for the report, but on this repository, you should open reproducible issues without external plugins as it might be an issue with the plugin itself. At least for what I can tell about the core, I see no issues in Compo...

#3710August 17, 2021by rajnishrao1 answer
0 reactions

TypeError: Cannot read property 'stop' of undefined

I am using GrepeJS in a React project. When I enter in preview mode and press browser back button, preview mode does not exit. However, when I click on the eyeball it throws errors "TypeError: Cannot read property 'stop' of undefined"

artf

Hi @rajnishrao please try to update to the latest version. In case you still face the problem, open a new issue and include a reproducible demo.

#3706August 15, 2021by momu-2016No answers
0 reactions

BUG: 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...

#3704August 13, 2021by throne19863 answers
4 reactions

BUG: load blocks closed by default?

I am using the following bit of code to collapse all the block categories, unfortunately, this is not working live demo : https://jsfiddle.net/d4702yoh/2/ What is wrong here?

artf

That should be enough editor.Blocks.getCategories().forEach(ct => ct.set('open', false)) but categories are not created until the render of blocks (which happens, by default, when you click the Blocks tab) so you just need to execute that...

ronaldohoch

Hello, i have made it to close all blocks in one plugin, try to adapt to you.:

throne1986

still the same here jsfidle : https://jsfiddle.net/46mfqeht/