Hello @artf I want to export final/production based html content excluding the script(Only which is added by block manager). Suppose i am adding a new block using block-manager, like Now when i put this block into the editor then it will create a div tag into the document and also creates the script like, So, while i...
thinkanymore
jsInHtml……false
thinkanymore
~~editor.Canvas.getWrapperEl().innerHTML~~
artf
@AkibDeraiya123 use jsInHtml option https://github.com/artf/grapesjs/blob/6cb73f328fcc1b3771a483160d6d6f5f8d34b80c/src/editor/config/config.js#L108 @thinkanymore no, you should never use the raw HTML inside the canvas' wrapper
Like title says if the component has script attribute ,redo&&undo doesn't work ,I'm sorry I misunderstood.
artf
Hi @thinkanymore we have already an issue regarding the UndoManager #1512 (I close this so reply there if you need) To be honest, I didn't get one thing, you're telling me the issue is with that model.set('attributes', attr)?! Can you tell...
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.
Hi, can you please tell me what is the best way to manage dynamic templates. I want to describe you what's my case.Have e-commerce store and use GrapesJS.We have PAGES and in this pages want to add product collections or collection with brands (logo). I want to create few components like product collection, brand coll...
artf
You can make use of a custom component and variables to replace on server-side. Take a look at the example I made for you: https://jsfiddle.net/fcsa6z75/7/
abozhinov
Can you give me advice how to make mapping with dynamic data. Something like Webflow. They have product collection and you can edit template select TEXT component and choose this is ProductName. Their editor looks like GrapesJS. My concern...
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.
Version: 0.14.50 Edit: Sorry, I saw it is working when i add the trait manager. Attributes are not set in component. Exemple with : editor.BlockManager.add('h1-block', { label: 'Heading', content: '<h1>Put your title here</h1>', category: 'Basic', attributes: { title: 'Insert h1 block' } }); Results in : <h1 data-gjs-...
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.
hi @artf How are you? I'm facing a small issue on GrapesJS and I would like to hear your thoughts about the best approach here. My issue is: When I have a small block, like a Link, placed at the top left corner of the Canvas, the toolbar totally covers the block and I can't see it. I would have to unselect that block...
artf
Hi @arthuralmeidap I think the #1434 talks about the same problem. Honestly, I've already solved, basically the same issue, with the RTE toolbar, so I guess, if you have time, you could copy/share the same functionality for the Component's...
arthuralmeidap
@artf I created the PR #1730 for this. Take a look when possible! Thanks for your help as always!
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.
I have a problem with a component. When I drop a component into the canvas I create a simple object. Before appending this object I need to check if some attribute is already populated but children are not yet available.
artf
Reproduce the issue in a live demo, if you're able to do so, open an issue as a BUG (follow the template)
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.
Hi, artf. It seems the "start" value of the "justify-content" property is not very well supported: https://github.com/artf/grapesjs/blob/8af686cb7fa66863c04b786ed1aa704e5406252e/src/styles/scss/gjstraits.scss#L18 The precompiler throws the following warning: I think changing it to "flex-start" has no bad consequences.
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.
Hi, i have created a custom traits and custom blocks but i try to link my blocks in traits, it does not shows in settings option my custom blocks my custom traits can anyone please help me Thanks
artf
This is not a [QUESTION], please FOLLOW the instructions for a bug report and PROVIDE a live demo of your 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.
Hi, I get the value from custom traits from what I entered but I don't know how to change the particular value in dropped component and render into the canvas my screenshot what I really want is to replace the regular text value to which I have entered in custom traits u can see in my screenshot my custom traits is he...
artf
Please check the Component API
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.