#3718August 21, 2021by Abhisheknanda13444631 answer
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
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
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
artf
@mingxin-yang you have to extend the view of the mj-button Component
#3714August 18, 2021by ltenti1 answer
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
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...
#3712August 17, 2021by aliibrahim1231 answer
any one knows how to execute a function when the block manager is opened
artf
If you use the default command to show/hide blocks, you can do it via editor.Commands.isActive('open-blocks')
#3710August 17, 2021by rajnishrao1 answer
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.
#3707August 16, 2021by denisoedNo answers
GrapesJs is the best page builder! :heart: Sorry, i am new to GrapesJs. Can I add support for vue components?
#3706August 15, 2021by momu-2016No answers
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
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/