#2256September 9, 2019by ramusesan1 answer
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
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
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
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
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
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
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:
#2248September 6, 2019by senchdenNo answers
Editor adds "undefined" value to class and title attributes resulting in a tooltip that says "undefined". Reproducible in a web page demo. See screenshots:Source:Result:
#2247September 6, 2019by senchdenNo answers
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
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...