GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#1739January 22, 2019by Soharab-Shaikh2 answers
2 reactions

How to load dynamic CSS style(Not Link) into the Canvas head

Hi, First of all thanks for your great Work !!!!! I am trying to load a dynamic style into the canvas head. Is there any way to load dynamic object or string into the canvas head. var customeCss = "h1 { color:#000000; font-family:Courier; font-style:italic;; }" var editor = grapesjs.init({ ...............................

artf

Do this

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.

#1733January 21, 2019by AkibDeraiya1233 answers
2 reactions

How to remove script tag which is added by add block manager script

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

#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.

#1729January 15, 2019by K4ST0R1 answer
0 reactions

[BUG] Attributes property is not working

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.

#1728January 14, 2019by arthuralmeidap3 answers
0 reactions

[FEATURE REQUESTS] - block's toolbar at bottom option.

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.

#1727January 14, 2019by alfaalex812 answers
0 reactions

[QUESTION] Event to get children view

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.