#1374August 22, 2018by emilsedgh3 answers
Is there any way I can change the default properties of components? I want almost everything to be copyable: false, resizable: false, draggable: false unless the loaded component specifically provides a data-resizable=true. So basically I want to whitelist some components to enable these instead of blacklisting. Is it...
jereddanielson
@artf FYI that doesn't exactly work as needed. Updating the default component's default properties does not take effect for already-defined components (such as built in table, textnode, et. al.) because they have already extended the defau...
artf
You can update the default component https://grapesjs.com/docs/modules/Components.html#update-component-type
artf
@jereddanielson correct, this is how you should do to update also already defined component types. Thanks for pointing this out
#1373August 21, 2018by dsepulved2 answers
Hi, I am using backbone-deferred https://github.com/arhea/backbone-deferred, when starting GrapesJS this library is deleted, I have to restart the application to get it back, any way to solve it please?
artf
I don't know, try to load that library after GrapesJS or maybe check this http://backbonejs.org/#Utility-Backbone-noConflict it might be an issue as grapesjs, once compiled, contains its own version of Backbone
lock[bot]
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.
#1372August 21, 2018by mm5804862 answers
i want change my view but not on export for sample i added this code and now i want show this code on view how can i take this action ?
artf
I'd make a custom component to handle such a case.
lock[bot]
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.
#1370August 18, 2018by rajatkumcom3 answers
Its not a issue,I need some help. I have integrated Grapes Js with Drupal 8, for styling Drupal elements. I don't want the id selector which you are generating dynamically, instead it select the id of the element if it has id or ask user to enter it. Actually we don't have control on HTML elements. Only we can control...
artf
GrapesJS outputs style in CSS, it doesn't inline it, so in this case, it would require the user to indicate always the ID before applying the style, so it works like that by design
lock[bot]
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.
#1369August 16, 2018by alimajed933 answers
Hello everyone, I have added many custom blocks and gave the same css class to all the images in those blocks. Let's call it for now 'image-class'. When I drag and drop 2 of those blocks and select 1 image in 1 of the blocks, the class 'image-class' does not show at first click in the classes section in the panel on t...
artf
Can't reproduce it, just provide a live demo (as I suggest in the issue template) with that block
alimajed93
I will share with you some screen shots that will surely make this problem clearer:Step 1: Drag a drop a block in the canvas and select it by clicking on it <img width="642" alt="screen shot 2018-08-21 at 10 16 29 am" src="https://user-ima...
artf
I understand what is your problem but still, you have to post a live demo because I can't reproduce it. It might depends on many stuff, just screenshots are not enough. I'm not even sure you're using the latest version, so update it please...
#1368August 16, 2018by shlomoko3 answers
Is there a way to have a dynamic resizing of the canvas? i.e not using the Device Manager, but having a drag and drop of the width, similar to what you can do with panels or components? Thanks
jvillena
@artf and @shlomoko, I will explain the step little by little. Firstly, I need to use Jquery but you can use other library or integrate inside the GrapesJS engine. In my case I wanted to do it transparent to the engine. 1) I have two hidde...
artf
No @shlomoko, canvas is not resizable but I'd be glad to see a PR for that (possibly with the same logic used in panels)
jvillena
Hi @artf, I've just implemented a resizing canvas bar but I don't know if exist a way to refresh the position of the highlight borders. Take a look in the video please: http://recordit.co/jKlppYg2dD gjs-badge gjs-toolbar Best regards.
#1366August 15, 2018by blairpanek3 answers
On newest version of Grapesjs. I can replicate bug on both. Linux Ubuntoo, Moxilla. I expect that the css only shows up once, otherwise it'll be to much in the window for use when exporting it. Css gets duplicated. Duplication happens with @keyframes styles. So clear canvas drag tabs block onto canvas export import an...
artf
@blairpanek I don't understand how to reproduce the issue, provide a live demo please
no-response[bot]
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...
yomeshgupta
@artf Great work on the project! However, I noticed that CSS inside media queries are repeating itself. Any idea why? Facing the same issue on my local machine too. Happening on the demo page too : https://grapesjs.com/demo.html
#1365August 15, 2018by shlomoko2 answers
Hi, I am trying to add vertical buttons in a panel. I have added a flexbox with a vertical direction, but since an additional div is added as an interim to the buttons, it does not affect them. Is there a way to solve this? I have added the following code that does not appear to work ():
artf
@shlomoko sorry but I close this issue, has nothing to do with grapesjs itself, it's just about your UI layout setting
lock[bot]
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.
#1364August 14, 2018by thangab3 answers
Hello, I use Grapesjs in my reactJS application. I have a react component which is an instance of Grapesjs. So I can add this component in my application as many times as I want. Everytime I want to fire an event (delete a block) with my keyboard in the grapesjs Editor, it doesn't work. This is the error throwing: But...
artf
Can you provide a reproducible live demo of your case, please? ps. make sure to work with the latest version of grapesjs
no-response[bot]
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...
lock[bot]
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.
#1363August 14, 2018by jvillena2 answers
Hi @artf, I'm now working on doing content in multi-languages inside the editor but I would like to know how can I save in the Dom HTML new HTML elements closest to the element selected (or update the these elements as new components inside the editor). For instance, I'm including some hidden div inside the HTML but w...
jvillena
I've just fixed my problem doing a workaround after researching on the grapesjs core. I'm going to explain the solution that I did: 1) I'm using a popup dialog with a bootstrap switcher to select text language. The complicate issue is how...
lock[bot]
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.