GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

829 issues found

๐Ÿ” question
#1627December 4, 2018by SeongwoonHong2 answers
0 reactions

[Question]: $('.gjs-trt-traits') is null (trying to have 'Settings' sector under the style)

Hi, I'm using webpage preset and trying to have Settings sector under Style like the demo by doing this (exactly the same as demo.html) but the problem that i have is $('.gjs-trt-traits') this is null therefore, if I toggle 'Settings' under Styles, it is empty. Please let me know..Thank you! var traitsSector = $('<div...

artf

Traits are not created by default if not requested, indeed I'm doing this in the demo https://github.com/artf/grapesjs/blob/gh-pages/demo.html#L1407-L1408

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.

#1621November 29, 2018by real-ashwin2 answers
0 reactions

Question on css classnames used in demo

In the demo page https://grapesjs.com/demo.html, I see that the elements are centered using a class called container-width.Where can I see the full list of classes?How do I know that I have to add container-width to center? Where is that class defined? Thanks.

artf

Where can I see the full list of classes? By using the API Selector ManagerHow do I know that I have to add container-width to center? Well, if the demo doesn't tell probably there is no reason to let you know...Where is that class defined...

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.

#1620November 29, 2018by mathiasbc2 answers
0 reactions

[Question] Can't edit Text on Block

I wrote a plugin that defines a new Block for a simple headline. However when I drag and drop this block to the canvas I get the placeholder text Text Here and I am not able to edit it. What am I missing ?

artf

I get the placeholder text Text Here ??? no, it's not a placeholder text, this is what you wrote inside your table...I am not able to edit it It works here https://jsfiddle.net/7oeh2man/

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.

#1619November 29, 2018by ghost2 answers
0 reactions

[Question] Custom Modal Classes

Hi there, Great app, much appreciated that you have put this out there for the community. Just a quick question, I would like to modify the size and appearance of the different modals, ie. Export, Image upload etc. But it seems there is no unique class/ID on any of the modals. Is there an easy way to add a unique clas...

artf

You can do it by intercepting their commands

ghost

Great, thanks @artf. I will give it a go.

#1617November 29, 2018by coder-strange2 answers
3 reactions

[Question] How can I stop the drop from block:drag:start event? Also is there any event to listen Invalid target position?

First of all, I really appreciate your replies on my questions. Thank you for all. Question 1 : I've a situation where if a particular block is already in the canvas, I can't let that block to be added again. What I'm doing is, I'm listing to block:drag:start and compares if the component is already dropped (in gjs-co...

artf

Question 1 : I've a situation where if a particular block is already in the canvas, I can't let that block to be added again. What I'm doing is, I'm listing to block:drag:start and compares if the component is already dropped (in gjs-compo...

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.

#1612November 27, 2018by Brandonwaichunyu1 answer
0 reactions

Grapesjs, is there a code for View code????

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

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.

#1609November 26, 2018by Brandonwaichunyu2 answers
0 reactions

Grapesjs, How to extract html/css code in view code into console log?

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

Brandonwaichunyu

View code doesnt appear on my javascript

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.

#1608November 26, 2018by narendravaghela3 answers
0 reactions

[Question] Customize CSS class name

GrapesJs editor creates a unique class for element and adds CSS rules to it. For example, Now, is there any way to customize this behaviour? I want it to be .parent-namespace .c1731 instead of just .c1731? Is there any solution to do so? Thanks

narendravaghela

I found this related issue - https://github.com/artf/grapesjs/issues/391

artf

If you need to update CSS rules you should rely on CSS Composer module

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.

#1602November 22, 2018by arthuralmeidap3 answers
1 reactions

[QUESTIONS] - Panel visibility

Hey @artf , How have you been? Quick question: a Panel has a property called visible. I'm trying to set it to false but nothing happens. I'm getting the panel after the GrapesJS is rendered like editor.Panels.getPanel('myId').set('visible', false); I was digging into the source code and I didn't find any use to the vi...

arthuralmeidap

created MR https://github.com/artf/grapesjs/pull/1603

arthuralmeidap

Oh, I didn't say but I want to hide/show the panel according to some condition. I know how I could get the panel html element itself and change the display but I was wondering about the visible property

artf

I was digging into the source code and I didn't find any use to the visible property for the Panel model. Yeap, you're right ๐Ÿ˜ฌ I'd expect to see a listener in PanelView Would you like to create a PR for such a case?

#1601November 22, 2018by Aitortilla221 answer
0 reactions

[Question:]Doubt in the iframe generation

Hello. I was wondering if I could put the iframe inside a "</div class="col"/>" bootstrap. Now iframe is generated full screen but mi composition in the web is: "</div class="row"> </div class="col-lg-2"></div> </div class="col-lg-8">"TEMPLATE"</div> </div class="col-lg-2"></div> <//div>" obviously the template that I...

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.