#2546February 3, 2020by AbdiasM2 answers
@artf Could you please take a look at this. On deleting a cell and trying to add a new cell from the blocks manager, it gives the following error: "Invalid target position: Target collection not found, Target is not droppable, accepts [undefined], Component not draggable, acceptable by [undefined]". These are my cell...
artf
Please, create a reproducible demo of your issue
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...
#2545February 3, 2020by Elvincth3 answers
index.js:129 Uncaught TypeError: Cannot read property 'appendChild' of null at Object.postRender (index.js:129) at index.js:757 at Array.forEach (<anonymous>) at r.<anonymous> (index.js:756) at m (backbone.js:368) at v (backbone.js:356) at h (backbone.js:155) at r.c.trigger (backbone.js:346) at renderBody (CanvasView....
artf
After init/render you can use the simple querySelector and move the DOM wherever you need, but again, I hope you don't re-render stuff manually
artf
@Elvincth, as you have the error stack, click on the error to see exactly where it happens
Elvincth
@Elvincth, as you have the error stack, click on the error to see exactly where it happens /*Initialize module. Automatically called with a new instance of the editor@param {Object} config Configurations@return {this}@private / init(conf =...
#2544February 2, 2020by gentritabazi3 answers
Hello how can i get css of selected component ?
longdoan7421
You could listen the event component:selected, then you could get the component's DOM element from that. Afterwards, you could simply use javascript to get style of that component. About getting style by javascript, you can check this link...
artf
You can also get the currently selected component by doing editor.getSelected()
alemenciones
How to get/setStyle() of hover state from a component? this is posible?
#2543February 1, 2020by Elvincth3 answers
<img width="1033" alt="Annotation 2020-02-02 032330" src="https://user-images.githubusercontent.com/6602723/73597835-77af0f00-456b-11ea-9286-2c8b012bf9da.png"> panels: { defaults: [] }, and I add my own panel using pn.getPanels().reset([... Thx in advance.
Elvincth
.gjs-cv-canvas { width: 100%; height: 100%; }
atikhashmee
were you able to solve this problem? I don't know for some reason mine is not hiding. Please do let me know what solution did you apply
lukajose
Overwriting the initial css, all css variables are declared in grapesjs. Simply add to your css: :root { --gjs-left-width: 0%; }
#2542February 1, 2020by erikhaw1 answer
Hi everyone! I have a question about my problem, which I want to solve for about 1 month. The question is: Can I create a component, like a image component, so when I drop it, it will open my own asset manager, that will not overwrite original asset manager, so Image component will have same functionality as it has no...
artf
You just need to create your own command which calls your modal. Obviously, as you're implementing your own Asset Manager it's up to you knowing WHEN to update the target For your custom image component you could do something like this: Wh...
#2541January 31, 2020by andy-aware3 answers
What I'm trying to achieve is whenever the "block" inside of the canvas is edited the style isn't added to an #id but instead added to a class. My logic is to take the current ID that is used - the random string and remove it as the ID and make it a class and then assign styles to that class instead of the ID, yes it'...
artf
Just create blocks/components with classes and, by default, the Style Manager will apply styles to them
Fahad-ishfaq
Just create blocks/components with classes and, by default, the Style Manager will apply styles to them Hi! Can you please tell if we can switch off this behaviour. I want to editor to setup CSS style to element id instead of class names....
artf
@Fahad-ishfaq https://grapesjs.com/docs/modules/Selectors.html#component-first-selectors
#2540January 31, 2020by SNaushadS3 answers
I am a designer, i want to try around GrapeJS. My understanding is that i can use GrapeJS locally similar to that of WordPress. I am familiar with Commandline and followed the Docs to install npm followed by installing grape js.. and i dont know what else to do so that i can try it. WOuld be helpful if there is some f...
pouyamiralayi
@SNaushadS grapesjs is a template builder so it can be integrated into wordpress or any other cms out there. See this one as an example of integration for october cms Please visit the getting_started guide to become familiar with the basic...
artf
@SNaushadS GrapesJS might be a good base for building something like that
SNaushadS
@pouyamiralayi thanks for the reply. to clarify further, grapejs is not something which can be used like pinegrow .
#2539January 31, 2020by ayana303 answers
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...
pouyamiralayi
@ayana30 you can append them to the global category, check out more on this here Cheers!
pouyamiralayi
@ayana30 please refer to uploading assets Cheers!
ayana30
am trying to list images here by using unsplash api.
#2538January 30, 2020by senchden1 answer
Steps to reproduce:Select any element.Try to add a background via Style Manager using 'Decorations' -> 'Background'.Click a plus sign. Expected behaviour: No extraneous requests are made. Actual behaviour: An extraneous GET request is made to ../none (i.e. to https://grapesjs.com/none if on https://grapesjs.com/demo.h...
artf
Should be fixed in the next release
#2537January 30, 2020by eyeamkd2 answers
I need to create an element, that probably is of span type, but the user need to drop it inline with a text. How can i achieve this functionality? To elaborate further, this block of mine, should have the property that could enable it to be inserted anywhere inside already defined text blocks
pouyamiralayi
Hi @eyeamkd you need to set `textable property of your custom component type to true`. here is more info custom component docs Cheers!