hi,broγI want to implement that there is only one button in the canvas.when i drag the second,it will not be placed correctly or the button is disabled.
artf
You're just missing the check for the current dragged model
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.
Hello, I'm trying to add a grapesjs editor to my React SPA. I'm initializing editor this way: config variable has the following configuration: The first time everything is working fine. When I navigate to another page of my single page app and get back - plugins are not loaded. I tried to delete an instance of editor...
artf
editor.destroy() method is available from https://github.com/artf/grapesjs/releases/tag/v0.14.20
fernandoagarcia
I am having the a simliar issue. Except I am using VueJs. When I leave the page and comeback to it the editor runs the plugin again. This causes the editor to be unusable until I resize using the device preview but if I drag a block into t...
Hi, My end user is trying to load a very big image. When I"m working with local storage I"m reaching the local storage size limitation and when I"m working with remote I"m reaching the PHP post size limitation. Is there any built in solution to reduce the size of the image or passing data with get when saving to remot...
artf
For the local storage check this https://github.com/artf/grapesjs-indexeddb For PHP, obviously, it's up to you
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.
Greetings, I did searches and could not particularly find a solution to my problem. Currently, I am trying to integrate my React App with GrapeJS. import React, { Component } from 'react'; import './GrapesSrc/grapes.min.js'; import GrapesIndex from 'grapejs'; class GrapesEditor extends Component { constructor(props){...
artf
@sakshigarg9 add grapesjs via npm, then in your code just use import grapesjs from 'grapesjs' It will work, without any need to update the webpack configuration
thanhpd56
@Silavin Have you succeed with integrating grape and react?
cjpollard
If you're using webpack to build your React app, you can include it as a plugin. It'll pull it from node_modules. `plugins: [ new webpack.ProvidePlugin({ grapesjs: "grapesjs" }) ],` This worked for me.
Hi! I'm trying to make all the user-set styles have the "!important" flag, in order to prevent some other previous existent classes to override it (eg bootstraps's text-muted). I think I almost have it working well. However, I'm having a problem while trying to re-open a previously exported design. I used this #1056 t...
artf
I've already made a fix for this, it will be available in the next release
mfloressosa
Great! I'll be waiting for this release to come out. Thanks!
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.
Hey @artf , I have a question around the Style Manager. Let's say we have multiple elements with row classes inside html, is there any possibility that on selection of a specific element the styles changed through the StyleManager are added on a programmatically created id/class instead of the existing class (in this...
artf
I think that the current implementation may be a little confusing from the perspective that the user expects that his action will reflect on the specific element he chose to style not every other element with the same style. Yeah, I agree...
FrciSmrci
@artf the proposed solution works great. Thank you! :)
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.
hi @artf is there any way to setup style sectors for different devices mobile and desktop i want to disable style sectors in Desktop if style is setup from mobile and other thing as you can see my screenshot i add new button in panel 'view' i m trying to append diff style sectors in this button please help me out @art...
artf
Sorry but there is no built-in configuration for such a thing, the only thing I can suggest is to start with this listener
Abhisheknanda1344463
okie @artf thanks for your suggestion :)
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.
sorry,I created a type for button and I don't know how to change the content of the button.thanks so much!!
FrciSmrci
Hey @ionic666 , as it's stated in the documentation for the components. Turn off autorender when adding new types of component and call it manually after you declare them. You can change the content of an component extending the view of th...
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.
Hi everyone, Im kinda stuck with creating a custom component. A custom block that im currently building supposed to show a modal with buttons pointing to a function which will then inserts a particular component based on selected button. The problem im having is that appending the div is not rendered and stored (compo...
artf
Follow the issue template and post your code
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.