#3243January 20, 2021by hanna4041 answer
Version: 0.16.27 to latest Are you able to reproduce the bug from the demo? Yes [ X] Yes [ ] No What is the expected behavior? insert text block inside another text block Describe the bug detailed when adding new block, or even when creating a new custom type, the "textable attribute is not working as expected and as...
#3242January 20, 2021by Nielsticot3 answers
Version: 0.16.34 What is the expected behavior? When the editor is initialized, no element is selected, so the style manager should say "Select an element before using Style Manager" like it does when not using "appendTo" in the editor configuration. What is the current behavior? When using "appendTo" in the editor co...
mosh-tudor
I used this code to solve it:
Nielsticot
This is not what I want, my issue is before any element is selected so before the event "component:selected" is trigerred. I temporarily fixed it by selecting an element on editor load but it is not what I really want
artf
If you're using the StyleManager in a custom element you have to handle that state on your own.
#3241January 20, 2021by CarlucciModsNo answers
Way to Importing Html and CSS from demo to upgrade version, one shot import ?
#3240January 18, 2021by marcepoblet1 answer
https://user-images.githubusercontent.com/64096863/104953457-35adf180-59a5-11eb-85bd-2f84ffa24d83.mp4 The styles of the text and button blocks are lost after deleting them from the template, and undo the changes and redo them several times. The issue is that the styles applied from the blocks, are lost after apply the...
artf
It should be fixed in the latest release, please follow the issue template properly and ensure to use the latest version before submitting a bug
#3239January 18, 2021by harsh2013 answers
We have a use case where we want to insert charts dynamically using Highcharts Editor. I have created a component, which on drag and drop, opens a modal based and based on user's selection, returns a SVG image. I am wondering how can I add it to the model's body. Right now I am using innerHTML to insert but the getHTM...
artf
You don't need components with JS in this case (in your final code you don't execute any JS), is enough for you something like this:
harsh201
Sorry for spamming. I was not able to upload usecase video from my work laptop. https://user-images.githubusercontent.com/2502711/106098322-d39c7b80-615e-11eb-8569-cf76ffc7fcc7.mov
harsh201
@artf Any help here will be appreciated. I went through the docs again and nothing stands out, which I could be missing.
#3238January 18, 2021by sizhousama2 answers
I write html strings as blocks, and need to introduce a lot of external scripts and styles, but I tried all the methods, when I drag the block to the canvas, the script does not take effect, but styles can be loaded,I hope to get help。Load by appendchildinit load by canvas:{scripts:[...]} who can help me?
harsh201
@sizhousama I am loading scripts/stylesheets via canvas while initializing grapesjs editor and it works for me. More details can be found here. Hope it helps!
sizhousama
The console shows loaded
#3237January 15, 2021by Abhisheknanda13444633 answers
Hi @artf I've added trait for wrapper this way. How can I perform the init function for the same Here is the code @artf Could you please help me? Thanks.
artf
You can use this option from components on init https://github.com/artf/grapesjs/blob/69e5ab2c1176e6fdeac1b058398cca55efe92df3/src/dom_components/config/config.js#L9 PS: stop annoying other people with your issues, please or I have to bloc...
Abhisheknanda1344463
Sorry @artf I'll keep this in mind. Thanks
Abhisheknanda1344463
@ryandeba Any suggestion?
#3236January 15, 2021by AidenctoNo answers
Help IM looking for Czech if possible I'm also looking for French, Spanish, German, Polish, please help
#3235January 15, 2021by AnnaSuNo answers
Taken from https://github.com/artf/grapesjs/blob/dev/src/editor/index.js#L33 component:update - Triggered when a component is updated (moved, styled, etc.), the model is passed as an argument to the callback reproduce the buguse move API to move componenthttps://grapesjs.com/docs/api/component.html#moveclick arrow up/...
#3234January 15, 2021by tonypartridgeNo answers
So I have this issue... I have a 'text' box which is set to be full width but centres a name shortcode. When then generate a PDF and HTML page of this and expect the name to be central too. But as the name sizes can vary I've just realised with absolute positioning it is still taking the container size of of the value...