GrapesJS Issues

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

3464 issues found

#1202June 14, 2018by milapshah153 answers
0 reactions

Classes mismatch while using web preset plugin

Hello Everyone, I am using website preset plugin however, when I drag column from grapes Demo page the styling is different and in my application the styling is different as follows.Am I missing anything? GrapesUI{ box-sizing: border-box; } body { margin: 0; } body{ background-image:url(none); background-repeat:repeat...

milapshah15

@artf Please help if I am missing anything

milapshah15

f = s ? "\n ." + u + " {\n display: flex;\n justify-content: flex-start;\n align-items: stretch;\n flex-wrap: nowrap;\n padding: 10px;\n }\n @media (max-width: 768px) {\n ." + u + " {\n flex-wrap: wrap;\n }\n }" : "\n ." + u + " {\n displa...

milapshah15

Issue fixed. flexGrid : true in the options for basic plugin fixed the issue Warm regards Milap

#1200June 13, 2018by ivanezeigbo3 answers
1 reactions

Modify grapes.min.js to allow video types on AssetManager

Please, I would like to modify my grapes.min.js because I would like to add the video type to my assetManager. For some reason, the am.addType() messes up my page and does not work as well. I am not sure why, but I am curious about where to make the changes on my grapes.min.js to include video types. Please help.

WkRPcoN

This is how I was able to trigger the asset manager on dbl click. See the events property below.

artf

I think it will be much easier to understand what is wrong with am.addType. Please provide a live demo of your case. ps. As you've created an issue I removed your comment in #802 because the content is the same but left like this it was ju...

ivanezeigbo

@artf Never mind. I found out I was just mixing up the versions used. Thank you! I actually used another way around. I added activeOnRender:1 to video and removed the default src in the blocks-basic.js. This allowed me to choose my own src...

#1199June 13, 2018by algodata443 answers
2 reactions

[Question] : Can we remove links?

I tried to add a button to remove links but i couldn't find a way. I can add them in a text with the RTE button and edit them by double-clicking, (with the help of https://github.com/artf/grapesjs/issues/610). but I would like to know if i can have a button that remove the link without removing the text inside.

cjpollard

If you use the CKEditor plugin, that button's there.

artf

@algodata44 for the built-in RTE you need to implement a new action for that

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.

#1198June 13, 2018by krunal0392 answers
0 reactions

QUESTIONS : Find element in Model

I have custom component and it render below html, I want to update value of h4 tilte and other element on trait changed, but not sure how can I find h4 and other element in model (NOT in view) and change value via trait change. I have used below approach but does not want to access model via index. updateTitle : funct...

artf

https://github.com/artf/grapesjs/issues/1157#issuecomment-397104559

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.

#1197June 13, 2018by frantischek2 answers
0 reactions

Asset upload with Laravel 5.5

Hi, I'm using grapesjs - 0.14.15 on my server. Trying to upload images in two different ways: and with: In my PHP file I only want to return the files array using: But it's allways empty. Please help - thank you. Regards Frantischek

artf

https://laravel.com/docs/5.6/filesystem#file-uploads

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.

#1196June 13, 2018by WkRPcoN2 answers
1 reactions

[Bug] AssetManager not automatically opening in v0.14.20

Hi, I recently updated grapesjs from v0.14.17 to 0.14.20 and found the Asset Manager no longer automatically opens when dragging an image from the Blocks Basic plugin or when dragging an custom block to the canvas. I have ensured that activeOnRender is set to 1 on a custom block, and it appears the Image block in the...

artf

Found the bug, will be fixed for the next release Thanks for the catch

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.

#1195June 12, 2018by kickbk2 answers
0 reactions

[Question] Load basic block component fromElement

I probably missed it somewhere in the docs but could not find it. I'd like to a "form" block inside a "column" block on page load fromElement and also when clearing the canvas using editor.setComponent(). With mjml I would do editor.setComponents('<mjml><mj-body><mj-container>... but what's the equivalent with the web...

artf

The recognition of the component depends on this https://github.com/artf/grapesjs/wiki/Components#component-recognition So the "form", for example, is recognized just be the tagName so you don't need to do anything else, but the "column" i...

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.

#1194June 11, 2018by MobileAppVault2 answers
0 reactions

[QUESTION]: load existing html web template into GrapesJS

Hi, I want to load an existing HTML Template into grapesjs and edit the page. Edit means:move sectionsadd/remove edit buttons, images etc. My template source will be https://html5up.net/ for example. How I can achieve this? Do I need to split my template into components? Many thanks for any answer help or suggestions....

artf

You can import it as it is but take care of this #1173

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.

#1193June 11, 2018by Siddharth-ss422792 answers
1 reactions

[QUESTION] Not able to initialize colorpicker !

Hi @artf , I made separate styles for mobile view . i want to initialize color-picker "onclick()". i want exactly same color-picker that you are using in grapesjs editor. how can i initialize same color-picker?? thanks in advance @artf ??

artf

Internally, it's a modified version of https://github.com/bgrins/spectrum

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.

#1192June 11, 2018by nishant-t2 answers
1 reactions

[Question]: Can I use GrapeJS into a Commercial WordPress Plugin?

Hello @artf I want to use GrapeJS into a Commercial WordPress which I am planning to develop. Do you allow that? Is attribution mandatory?

artf

Do you allow that? SureIs attribution mandatory? Nope

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.