#3103October 28, 2020by mohd74691 answer
Hi @artf, how can i add platforma collection of components and UI elements in this grapesJS any idea?
integerManual
hy @awais786327 you can try read docs on how to add blocks and components, when init grapesjs dont forget include css/javascript from platforma to the canvas
#3102October 28, 2020by integerManual2 answers
Hy @artf how can i add event listener to wrapper component trait ?, based on issue #1146 i only know how to add trait, but not binding an event
artf
@integerManual the purpose of the trait is to change some component attribute/property, so you have to add listeners on components and not traits.
GoodPHP
Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.
#3101October 28, 2020by palerdot2 answers
https://grapesjs.com/docs/getting-started.html - Getting started guide examples are static. All we can see is 'Hello World Component!' when different blocks, panels are added after each step. What is the current behavior? Getting started page examples are static after each step in the guide. What is the expected behav...
theSC0RP
@palerdot The examples aren't static in my browser. Here's a screenshot: <br/> <br/> As you can see in the image, there is a panel at the bottom which contains various blocks. I am able to drag and drop them on the canvas. Here's another s...
palerdot
It is working fine now. For some reason, when I raised the issue it was completely static. Will close the issue as this is not relevant right now.
#3100October 28, 2020by stljeff13 answers
Hi, I am customizing GrapesJS by creating components/blocks my users can drag onto the canvas. A number of these blocks depend upon external libraries like Bootstrap and FontAwesome.. Is there a way to check to see if the necessary dependencies are included on a page, and if not, add them to the page? Here is what I a...
GoodPHP
Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.
artf
@stljeff1 the correct way is to use Component related scripts which check if the dependency exists
stljeff1
@artf Can I do that with CSS files? Nonetheless, I did manage to "solve" my problem by creating a custom type for the blocks with any kind of dependency (CSS or JS). This custom type extends the default view by adding a custom callback whe...
#3099October 27, 2020by BanksyDog2 answers
I have the same issue reported in Components & Js - Load Template #1906 Components with JS work fine when dropped, and on first export. However, if the page is refreshed, js is not loaded which causes issues. The JS is also excluded from any exports after a refresh. Thanks for the help.
GoodPHP
Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.
artf
Ensure to have the script on a defined Component and not Block, then you have to store and load the JSON structure, not HTML/CSS
#3098October 27, 2020by meyerco3 answers
DescriptionThe bug is reproduced on the current demoWhat happens ? I configured my video block with src=null like this : When i drag the block i get on the generated html an base64 image on the src attribute like this : Expected behavior I want to set a block without predefined src and give the user the ability to set...
GoodPHP
Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.
artf
@meyerco pass an empty fallback: '' property also
meyerco
To be more precise , the bug is about loading an html that contain a video tag without src attribute . After loading this html , an scr attribute is added to video tag . This src value is a base64 image (obviously the default base64 image...
#3097October 26, 2020by vatsla12 answers
I am trying to make custom traits following the guidelines from Grapesjs Trait manager, and I have been through previous issues but the traits don't show up. Expected result: custom traits like the ones below to show up. Actual result: default traits like id and title show up. Currently, I'm using the trait manager we...
GoodPHP
Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.
artf
Follow the issue template please and provide a live demo of the bug
#3095October 26, 2020by marcepoblet2 answers
When in the Canvas, I double click on some text to open the RichTextEditor in IE11, it throws me an error and does not open. In all other browsers it works. Attached a vide in the pptx and the code: Presentation2.pptx richTextEditor.add('insertHtml', { icon: '<select class="placeholders-select">' + options()'</select>...
fq-selbach
I'm surprised that you could even open it in IE11 since there is so much ES6 code and heavy template usage that isn't supported at all by IE11. I'd suggest to get rid of IE11 or at least build your templates/pages/widgets in a modern brows...
devuniverse
IE ... #shivers
#3094October 26, 2020by marcepoblet2 answers
in the RichTextEditor I have added a button that opens a modal, and this modal enters certain values that I then insert into the html. But when I save these values the html does not save them. What could be the problem? I shared the code and a video in the PPTX. Presentation1.pptx editor.RichTextEditor.add('conditionI...
GoodPHP
Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.
artf
Probably the issue here is related to the loss of focus during the editing in the modal. You should find a way to keep the focus on the RTE (maybe creating your own modal which prevents the propagation of events), but this is not related t...
#3093October 26, 2020by tranthanhhoa1 answer
Version: 0.16.27 Summary:Missing hover style on the duplicated component Steps to reproduce:Try to change something on Hover stateDuplicate the changed component Expected:The duplicated component has hover style Actual:The duplicate component hasn't hover style
artf
Good catch, thanks @tranthanhhoa I'll try to fix it in the next release