#874February 15, 2018by AlessandroMagri3 answers
Hi, we are tring to integrate your grapejs in an existing web application. We need to load and store data remotely adding some POST params (different in the load call and in the push call). Is it possible? In the case that all works well, can you support us for some customization?
v8jupiter
Please read maybe it wil help -> https://github.com/artf/grapesjs/issues/597
artf
@AlessandroMagri you basically set custom parameters in the storageManager configuration: Those are used for both the load and store requests, if you want you can find here #831 how to customize the already initiliazed storage manager
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.
#873February 15, 2018by v8jupiter3 answers
Hello, I am save template to db and after loading from db impossible to change component with Traits. Video example on countdown: https://youtu.be/0QPKswfhzlU version: "0.13.8"
v8jupiter
I updated to "0.14.5" and still have issue. I am trying to debug and found next, traits always return old value which was selected before saving .
v8jupiter
Can someone help me on what place start to investigation issue?
artf
Thanks for the catch @v8jupiter it was actually an issue with the component javascript loading. I'll publish the fix with the next release
#872February 15, 2018by panagulis723 answers
Is there a fallback on var editor = grapesjs.init({ }) ? I need to know when the editor is loaded and initialized
cjpollard
You can listen for the event with:
ryandeba
Hi @panagulis72, As @cjpollard pointed out, the load event is what you need to listen for. Here's a live example: https://jsfiddle.net/gkcgm6th/5/
panagulis72
Thank you very very much!
#871February 15, 2018by chthomos3 answers
Hello, I have noticed the following buggy behaviour on the style manager:Using a local copy of GrapesJS (ver 0.14.5) . Tested in Chrome and Firefox both in Win10 and OSXGrapesJS is initialized and components are loaded through the loadComponents. (for example here's the JSON I used in the demo, where I load an image c...
artf
Hi @chthomos and thanks for the issue, but are you able to provide a live demo of this bug (eg. via jsfiddel)? I've just tried this on the public demo and it worked as expected
chthomos
Sorry for the late reply. I am working on a fiddle for this so you can replicate.
artf
@chthomos good, I close this then for now and reopen when the fiddle is available
#869February 14, 2018by ryandeba2 answers
The style manager seems to have a nice solution for when no component is selected by showing a "Select an element before using Style Manager" message, but the trait manager does not. This is pretty easily seen in the newsletter demo:Select any componentToggling between the style and trait panel works as expectedDelete...
artf
Should there be a message in the traits panel similar to the one in the styles panel? I'm would be glad to add such a functionality
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.
#868February 14, 2018by nojacko3 answers
Taken from https://github.com/artf/grapesjs/wiki/API-Editorcomponent:add - Triggered when a new component is added to the editor, the model is passed as an argument to the callback My understanding is that the component:add should only be called when the block is dragged in from the blocks panel and dropped into the e...
artf
@japo32 all available public events are documented here: https://grapesjs.com/docs/api/editor.html#available-events
seifelhoseiny
Any update on this issue? It still calls component:add event when I simply move a component around.
lv-alex
It works. Thank you @artf
#867February 14, 2018by XYNOMEX3 answers
Hey, Any plans to bring outlook support for newsletter builder, it should be easy to implement. it should be optional like if i want outlook support it should always create tables with width. thanks,
nojacko
I think that's down to you to build that components/blocks that work with Outlook. The newsletter builder is just a demo.
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.
#866February 14, 2018by NorthstarTech3 answers
I want to use the function spreadUrl(url) of grapesjs.min.js file in my JSP. The grapesjs.min.js file is already included in my jsp. How will I call that spreadurl function in my jsp. I tried something like this but its not working. If anyone helps how I achieve this function?? editor.getSelected.prototype.constructor...
artf
If it's not a public method you can't use it
NorthstarTech
Ohh Okay. Thanks alot @artf
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.
#865February 14, 2018by byeonggukang3 answers
Hi ! I want to set tagName tr for all components(or specific component in use). Is there any predefined function to set tagName ?
artf
You can change the tagName of any component, at any moment, in this way: You can also change it at the component level, in this way any new one of its type will get it by definition. Read more about Components and how to extend them. Basic...
byeonggukang
works great! thanks @artf Is there any way to change wrapper's tagName also?
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.
#864February 13, 2018by panagulis723 answers
When I add an Image, in this block: I get the error: the object does not support the property or the 'jscompsymboliterator0' method It happens on IE 11. Is there an alternative to write that loop in another way, supported by IE?
ryandeba
Hi @panagulis72, Have you looked into using a polyfill? A quick google search found this...I've never used Symbol.iterator before, so that's probably as much as I'd be able to help :(
artf
Hi @panagulis72, unfortunately, that piece of code is generated by the compiler from this method (is it intentional your use of embedAsBase64?) if you want to find a way to write it up without generating it I'd be glad to merge your PR
panagulis72
Hi @artf ! I'm talking about this file: https://raw.githubusercontent.com/artf/grapesjs/dev/dist/grapes.js try to search the string: for (var iterator = filesSymbol.iterator, step; !(iteratorNormalCompletion = (step = iterator.next()).done...