#1466September 27, 2018by sfkazmi3 answers
I am working on a project where i integrated grapesJs for users to build there templates, save them in database and edit these saved templates. I recently added slider plugin and now user can create templates but when edit i cause issue with javascript, I am using editor.setComponents when a user edit template and add...
sfkazmi
i got a way to fix it, I directly passed the html and css content in <div>.
sfkazmi
I got a new issue, when i pass the css in <div> to render it and html, i change the style and get it with editor.getCss(); it gets the old style that i passed into style tag in <div>
artf
Read this: https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates
#1465September 27, 2018by Deepak8132 answers
Hi @artf, How we can create the custom undo manager on button click.All the changes need to add in undo manager and then we can revert back to it. As we have implemented certain changes in different element due to that certain css is not working. Like when click on one button i have removed its class so when click on...
artf
There are no built-in methods to add custom undo manager, but you can definitely improve the integration with the default one by opening some PR
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.
#1464September 27, 2018by sureshDurai1232 answers
First of all thank you guys for this awesome library, And I have one Clarification that is how do i customize the drop position example if i drag a text field into Canvas it will look like - (below reference image 1) And want to Customize the position of that text by simply Dragging it from left to right or right to l...
artf
The "Designer mode" is not yet available but planned in the Roadmap (#74)
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.
#1463September 27, 2018by Abhisheknanda13444632 answers
hi @artf i am using your boilerplate plugin and i want to disable hoverable property from all the elements as screenshot below yellow area appearing on hover i tried to do this const updateAll = model => { model.set({hoverable:false}); model.get('components').each(model => updateAll(model)); } updateAll(editor.DomComp...
artf
@Abhisheknanda1344463 if you see "yellow area" probably because you're using showOffsets: true in your configurations (default is false)
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.
#1462September 27, 2018by aerionTech3 answers
We have gotten GrapesJs integrated into our Angular application. We have the asset manager showing a list of images that have been uploaded. Initially, there are no images and upon dragging an image and then handling the upload the asset manager shows the correct image. Upon uploading an image we are returning an obje...
artf
You should output this for your upload endpoint: https://grapesjs.com/docs/modules/Assets.html#response eg.
aerionTech
Hi That worked, in the documentation, you might want to update the documentation to remove the first line in the array and only use the object version for the return data. { data: [ 'https://.../image.png', // ... { src: 'https://.../image...
artf
@aerionTech right, but I think I'll update the upload function to make it understand also string items
#1461September 26, 2018by billyhorler1 answer
Hello , im trying to install this to my computer and then open powershell and put it up so i can then visit the localhost website but i carnt and wont let me access the localhost8080 as it says its invalid
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.
#1460September 26, 2018by YashPrince2 answers
How can I hide a trait element while creating a trait for the component. Is there any way like display:none or hidden:1. How can I show or hide any trait, Any help would be appreciated.
artf
You can pass something like this attributes: {style: 'display: none'}
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.
#1459September 25, 2018by gabrigcl2 answers
Hi, I'm developing a plugin for charts using chart.js. In order to the generated template render the chart from a data model generated by the plugin, I need to store this model into the html tag of the component. The model used by the chart is like this: And have to be stored this way: However, I don't know how to do...
gabrigcl
I have seen there's method, I'll test this and close this issue.
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.
#1458September 25, 2018by mrajeshkrossark3 answers
@artf , I tried to embed my template into the grapesjs editor. The issue am getting is the editor not working as expected with that template. Note: Am using react app for wrapping the grapesjs editor. Initially the editor embeded my template and it is look like below image I used Parallax effects for my template. The...
artf
Please a create a live demo of 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.
#1457September 25, 2018by Stejsi2 answers
Hello, i want to use custom Asset Manager i am used this solution, ` var assettarget =''; editor.Commands.add('open-assets', { run(editor, sender, opts = {}) { const modal = editor.Modal; const styleManager = editor.styleManager; assettarget = opts.target; modal.setTitle('Add new image'); var $test = $("<iframe style=...
artf
@Stejsi inside opts you have onSelect callback which should update stuff in Style Manager. Unfortunately, it only accepts asset (object) as the argument (my bad, I'll make it also understand strings) so, for now you have to do this
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.