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...
artf
Duplicate of #2771
GJSBlock
Thanks for reporting this, @hanna404. The issue with Textable attribute not working and causing exceptions appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM mo...
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.
Way to Importing Html and CSS from demo to upgrade version, one shot import ?
GJSBlock
Thanks for reporting this, @CarlucciMods. Great question about Importing Html and CSS from demo to upgrade version, one shot import ?. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJ...
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
GJSBlock
Thanks for reporting this, @marcepoblet. Thanks for sharing your report about UndoManager: combination between undo and redo is not working properly, lost some styles. To help the team investigate and prioritize this: Please provide: A min...
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.
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
GJSBlock
Thanks for reporting this, @sizhousama. Great question about [Question]: How to load external javascript,i tried all methods,Useless. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS...
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...
Help IM looking for Czech if possible I'm also looking for French, Spanish, German, Polish, please help
GJSBlock
Thanks for reporting this, @Aidencto. Thanks for sharing your report about XX Language support. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (CodeSandbox/JSFiddle) Your GrapesJS version n...
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/...
GJSBlock
Thanks for reporting this, @AnnaSu. The issue with "component:update" does not trigger when components are moved appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and...
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...
GJSBlock
Thanks for reporting this, @tonypartridge. Great question about Absolute mode and dynamic tags not positioned correctly.... The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation...