GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#2256September 9, 2019by ramusesan1 answer
0 reactions

wrapper.set({ draggable: false }); not working in 0.15.5

am trying to prevent the user to drag/drop the component on editor by setting draggable: false i.e wrapper.set({ draggable: false }); but this is not responding now, actually it was working old version 0.14.62

artf

@ramusesan wrapper is not draggable by default (I'm able to update it anyway)if you're talking about the update on other components, I can run editor.getSelected().set({ draggable: false }) without any issue, the component becomes immediat...

#2255September 9, 2019by makkaronis4e1 answer
0 reactions

[HELP] Unable to replace style for elements with id

Hi, i think that in API docs we need some clarification regarding avoidInlineStyle: true, that its still not default option, i've spent hours on investigating this style/id issue :)

artf

yeah, you're right, I'll make it true, by default, in the next release and soon I'll probably remove it. IMHO it doesn't make sense to support the old inline-style method

#2254September 9, 2019by eltoredoNo answers
0 reactions

[QUESTION] New command with a header runs itself?

Hello, I would like to ask wether my code is ugly and makes my localhost version do something bad or I'm not using the commands add correctly. To be more accurate, wherever I put the 'header index.php', even in an event that shouldn't be executed by itself, I will still be headed to index.php whenever I go on my grape...

#2252September 8, 2019by mariasmol1 answer
0 reactions

Preview mode does not run the scripts

Hi all, I am checking Grapesjs for our product After allowing scripts in the editor and ,writing this simple example i pressed the import and indeed saw the hello world which is great. however when using the preview mode i don't see the alert ( or anything else i tried instead of the alert) . how can i make it work? D...

artf

Scripts are working, the problem is that your script was already executed inside the editor and the preview mode doesn't re-render the content... For any custom behavior, I would suggest creating your own preview command

#2251September 7, 2019by Ramkumar-Murugesan1 answer
0 reactions

adding Traits properties in canvas body[QUESTION]

Hi, I know that we add the traits options or properties for any component blocks. but I don't know how to add the traits for canvas body. can anyone please help me. In the above image. under the settings options. I need to add one input and radio button.

artf

You can add them at run time https://grapesjs.com/docs/modules/Traits.html#updating-traits-at-run-time

#2250September 6, 2019by smik32 answers
0 reactions

Issue with automatically assigning poster on video elements

1st of all really enjoying all that Grapes has to offer once you've worked through the starting stumbling blocks! I have a small issue atm regarding videos. I am passing them to the Asset manager with a thumbnail property, which is then applied to the video poster trait when the src is updated. The only problem is thi...

artf

Hi @smik3 generally if you have an issue you would need to recreate it inside a live demo. BTW, first of all, use the improved API for component definition because this: is definitly wrong (with this API isComponent method is mandatory...)...

smik3

Thanks for the response, should have seen that chnge! I now have the opposite problem, in that it's applying the changes to the model (and the export/final code) but if the video block is placed within another block, the view just shows a...

#2249September 6, 2019by senchdenNo answers
0 reactions

[Bug]: Custom styles are reset after specifying an id

Expected: After specifying an id, all styles added to a block will persist. Actual: After specifying an id, all styles added to a block reset. Steps to reproduce:Add a new block.Add custom styling via style manager.Set and id via settings.Observe that all styles reset. Reproducible in a web page demo. Screencast:

#2247September 6, 2019by senchdenNo answers
0 reactions

[Bug]: Editor not working in IE11

Expected: editor works normally. Actual: page is blank. IE11 does not open the editor and prints out this in the console: Reproducible both with a local copy (grapesjs version 0.15.3, IE11, Windows 10) and web page demo. This issue might be related: https://github.com/artf/grapesjs-preset-newsletter/issues/72

#2246September 6, 2019by parmando3 answers
0 reactions

[QUESTIONS] how do I change the "Layer" in text shadow?

Hello, how do I change the "Layer" in text shadow. I need to translate this ... Thank you

ghost

I do not think you can do that... but you can change the html of the page when the style is added or updated using jquery or javascript. Like replace(/Layer/g, 'Other') in editor update.

parmando

This is interesting ... but I can't implement it in practice.

parmando

Eu não acho que você pode fazer isso ... mas você pode alterar o html da página quando o estilo é adicionado ou atualizado usando jquery ou javascript. Como replace(/Layer/g, 'Other')na atualização do editor. How can I do this? It would be...