GrapesJS Issues

3,464 parsed GitHub issues β€” 370 solved Β· 90 open. Search, filter and explore battle-tested answers.

1,399 issues found

πŸ” outdated
#1230Jun 25, 2018by pintor-mato3 answers
0 reactions

Doctype in the canvas iframe

Hey @artf, I noticed the canvas iframe doesn't appear to have any doctype set on it, which causes it to be in quirks mode. Is this intentional? I'd like to set it to <!DOCTYPE html>, but doing so causes some positioning issues that you can see in this screenshot and demo. Would you be open to a pull request that would...

artf

which causes it to be in quirks mode Which browser?

tomichal

@artf One issue I noticed with the lack of doctype is with HEX color definitions. If a user defines a HEX color as, e.g.: "fff", rather than "#fff", this will work in the editor, but once the page is rendered inside a HTML with doctype spe...

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

#1228Jun 24, 2018by ronaldaug3 answers
1 reactions

Can't reset CSS code which has parent or child.

Tested on both npm and cdn GJS Version - 0.14.20 (latest) OS - Mac Browser - Chrome Problem If CSS class name has a parent or child like #parent .child{ color: red }, user can't reset the style to origin, it still remain inside CodeViewer. Codepen Demo 1 - Adding CSS from block Codepen Demo 2 - Adding CSS inside #gjs...

artf

To remove the CSS codes that belong to a specific block. Indeed that block of CSS doesn't belong to any component (I'm talking about how the editor works) so that declaration is always rendered. GrapesJS can associate only class-based sele...

artf

This is because you're just clearing components. You can use the built-in command core:canvas-clear

ronaldaug

@artf Thanks for your quick reply. Sorry for my unclear question. What I actually want to achieve isTo remove the CSS codes that belong to a specific block. For example, when I delete a block in the canvas, the CSS codes of that block will...

#1227Jun 22, 2018by smaqeelkazmi3 answers
0 reactions

Re-render view in editor's canvas whenever Trait value changes

Is there any possible way in grapesjs that whenever a user changes the value of a Trait of a custom component the render function should listening or be re-render? I'm building a custom component for dynamic contents. The custom component code is: I want that whenever user change the value of Trait called Dummy Image...

artf

Update your view in this way

mararn1618

After 2 days this saved my life. Thanks to both of you!

vitanshu

But properties of html are not editable in canvas.

#1226Jun 22, 2018by DavidSporer2 answers
1 reactions

Specifying tooltips

Hi, I've tried finding information about it in both the code as well as existing issues but either I looked for the wrong information or it's not there, yet. I'd like to specify tooltips for e.g. the Style Manager - how can I do that? I've noticed that in the newsletter presets there are less tooltips than in the webs...

cjpollard

If you search for tooltips in the demo html, the code's there.

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.

#1225Jun 21, 2018by ionic6662 answers
0 reactions

Specify the content and type for block

when i just set the content like this: Everything is all right. But when I also specify the type, there will be a extra label.can you help me?

artf

Add the type via attribute data-gjs-type="input_box"

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.

#1223Jun 20, 2018by ogousseau2 answers
0 reactions

Asset Manager Upload in ASP.Net

I want to save file when i upload in dropzone, to do in init And in my Controler ASP.Net SuperAdmin : But formdata is always null ??? What i wrong ? (i'm beginer why JSon) Merci beaucoup.

artf

Check via devtool if the request is sent from your browser, the server part is up to you, can't help you there

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.

#1222Jun 20, 2018by laziest-coder2 answers
0 reactions

Adding new feature for BlockManager

I want to use grapes.js to create a website constructor for clients and when they show the design it should show the price of constructed website according to how many elements are used. What I am struggling in is that I can not create variable called "Price" and when from Blockmanager something is dragged and dropped...

artf

Currently, you should try with something like this BTW I'd like to re-enable block specific events, so probably with the next release the process will be more concise

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.

#1221Jun 20, 2018by algodata443 answers
0 reactions

Can't drag blocks

Hello, when I use grapesjs (with gjs-preset-webpage or gjs-preset-newsletter) I sometimes have a weird bug. I can't drag the blocks on the right, they don't move when i click on them. Sometimes, even reload the page isn't sufficient. We witnessed this bug with Mozilla and Safari but not with Google Chrome. Did someone...

artf

Hi @algodata44, do you use the latest version? Any error in console? Honestly, I don't face any issue with other browsers so can't actually help you here. You should at least provide a live demo with steps on how to reproduce the 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...

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.

#1220Jun 19, 2018by JulyanoF2 answers
0 reactions

Manipulate elements into a selected block in command

How can I manipulate elements into a block content? For example: My block: My component: Command:

artf

var myImg = editor.find('img') there is no editor.find method

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.

#1219Jun 19, 2018by hahenty3 answers
0 reactions

Event component:remove false triggers

Hello. Event "component:remove" triggers when any component deselected by ckicking on other place. Browser – Firefox (autoupdated) https://jsfiddle.net/szLp8h4n/207/ here "console.log" listens this event and prints on deselecting, including body of canvas. [google translated]

WkRPcoN

I can confirm I am experiencing the same issue on v0.14.20 this.editor.on('component:remove', function(model) { console.log('comp removed'); });

artf

Will be fixed in the next release

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.

Browse all topics