GrapesJS Issues

3,464 parsed GitHub issues — 370 solved · 90 open. Search, filter and explore battle-tested answers.

644 issues found

🔍 components
#1760January 29, 2019by Geelik2 answers
0 reactions

Prevent generating css properties

Hello, I want to prevent CssComposer to generate style for the displa property. I tried unstylable config on my components without success. Any solutions ? Thanks for your time

artf

You can't prevent the style to be generated, unstylable might be used to prevent showing display property in style 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.

#1756January 28, 2019by muzniousx3 answers
1 reactions

Drag and Drop not working in resized editor window in Google Chrome

Hi, I developed some components and all works fine in Firefox, Opera browser. In Google chrome also working fine in fullscreen editor mode only. But, when resizing the editor screen size(custom width & height), drag and drop is not working for all components. The green bar to point the target drop location is also not...

muzniousx

Hi, Thanks for your reply. editor.refresh() also didn't work. But, finally the issue was fixed when updating the google chrome and grapesjs-preset-newsletter.

artf

Can you explain how do you resize the editor?

muzniousx

This is the function i use for resize the window. function resizeEditor() { if ($('.detailview-header').length > 0) { $('#MyTemplateEditor').height(($(window).height() - 150 - $('.detailview-header').outerHeight(true) - 70) + 'px'); } else...

#1747January 23, 2019by SeongwoonHong1 answer
0 reactions

[Question] How to re-render the whole library dynamically

Hi Artur, I have this checkbox underneath the editor. If you click it, it will load extra custom components. and if you un-click it, those extra custom components should be disappeared. Is it possible? and if so, could you give me an example code of how to do it? I really appreciate it Thank you.

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.

#1738January 22, 2019by cnaa972 answers
0 reactions

[Bug] Table cell(td, th) resize error

Hello. I'm working on Table feature with this awesome project grapesjs. ProblemI added table component on canvas. In ComponentTableBody.js, change default rows and columns options.In ComponentTableCell.js, add a resizable options on cell component.then In order to make resizing cell feature, but It doesn't work. Descr...

artf

The real problem here is the class actually, so I'm ok with removing them from the core (they are actually useless here), but I'd avoid other table-related components.

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.

#1737January 21, 2019by arthuralmeidap1 answer
0 reactions

[BUG] - Resize components off the Canvas

@artf Hi pal, how are you? Currently, when the user resizes components (Image and SVG basically), it's possible to make them larger than Canvas and the user is not able to see more the toolbar for the component. I have created a fix to limit the width to the Canvas width if the user tries to resize larger than Canvas....

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.

#1735January 21, 2019by bajki3 answers
2 reactions

Vuejs components builder

Hi, it would be nice to have vue components builder like mjml.. This user started project: https://github.com/Patrick-Spiegel/vue-grapesjs But how create component like VBtn in this project, but to accept drop element.. So like VContainer and you can drop VBtn inside. Thanks, Ivan

artf

This is very close to how I made the mjml editor, he created a custom component with its own renderer https://github.com/Patrick-Spiegel/vue-grapesjs/blob/master/src/components/grapes-components/v-btn/index.js Unfortunately, it's a not gen...

bajki

But how push new component to rendered Vue.. This would be great stuff for vue if can be managed.

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.

#1732January 20, 2019by thinkanymore2 answers
0 reactions

[BUG] redo undo doesn't work for components which has script

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.

#1731January 17, 2019by abozhinov3 answers
2 reactions

[QUESTION] What is the best way to manage dynamic components?

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.

#1718January 8, 2019by Ramkumar-Murugesan1 answer
0 reactions

QUESTION The name entered in the Traits for checkbox label is not getting updated to my html custom components.

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

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.

#1709January 4, 2019by cmoutafidis2 answers
0 reactions

[QUESTION] Is it possible to affect child component's styling through parent component's style manager?

Hello there! Awesome project and thanks for your contribution. I would like to know if it is possible to change the styling of a child component through it's parent's style manager. For example, I have a block of components. The parent component contains all the other components. By clicking the parent component and g...

artf

It might be a bit tricky but yeah, you can do it. For sure you have to create a custom Component and inside its init method (model) you would place listeners to traits/styles. Then, inside the callback method, of the listener, you'd use fi...

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.