GrapesJS Issues

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

3464 issues found

#1212June 18, 2018by sfrancy3 answers
0 reactions

Ajax Call, Button in a Panel

I'm tryng to do an ajax call for a button inside the panel this is my code: of course i hosted it on a web, but i dont recive response(error or succes) and i tryed an hello world inside the php, but i think the request never started.

artf

Please read about Panels API addButton() and Command API add()I think the request never started You shouldn't think, you have to use devtools to debug

sfrancy

my bad, i used FDE with the console, i just forgot to include jquery.

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.

#1211June 17, 2018by ivanezeigbo2 answers
2 reactions

Adding a working Import Panel Button without the presets

I want to add the Import button at the panel for importing templates, but I don't want to use the presets. I have already added the following code: ... { id: 'import', className: 'fa fa-download', attributes: {title: 'Import Your Template'}, command: function(editor, sender){ ???? } } ... I don't know what should be i...

ivanezeigbo

Oh, I just figured it out. So, for those who might be curious about how to solve this, this is how I went about it (by the way, this is thanks to the answer in Issue #324 :

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.

#1210June 15, 2018by ogousseau3 answers
1 reactions

[Question] Replace Devices icon ASP.net / Javascript

Bonjour, I want replace icon for selected devices like in preset-webpage but i don't understand why this code doesn't work and nothing appear on panel : Can you help me ? Merci et bonne journée.

sw45859

quick and ugly, less than 24 hours working with this right now, i didn't want to totally redo the panels so i did this:

artf

@ogousseau avoid panelDevices.render() and check your panel in the inspector, probably it's just behind some other one

ogousseau

Super merci !!!!!

#1209June 15, 2018by ionic6662 answers
0 reactions

about Built-in trait types for select

where can i find the code about Built-in trait types for select? And how do I listen for select changes?thanks very much

artf

https://github.com/artf/grapesjs/wiki/Traits

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.

#1208June 15, 2018by ssabrewolf2 answers
0 reactions

Create minimalist Panel left sidebar III

hello @artf , thanks to you for the comment on #1188, i see in the code https://codepen.io/artf/full/MQpZPj/ uses the appendTo property to render a filtered collection of component in a div with id # block1 , is posible to render 2 different collections, 1 in block1 and another in block2, since the BlockManager only p...

artf

@ssabrewolf as you get it right, BlockManager points only to one single DOM element, so you can't create 2 different collections, but you can definitely move elements around with plain javascript. You should do it once the content is rende...

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.

#1206June 14, 2018by Krishnaasa2 answers
0 reactions

Issue : Adding scripts inside nested content showing different behavior when compared with a single content ta

Hi , We are actually trying to add a own JS script that can read a file and preview the same on the html. But in doing so by adding a BlockManager we are noticing a different behavior where we are not able to perform actions like remove/copy nor are we able to edit the inner elements. The content inside the content is...

artf

Check your code, it's completly messed up, you're mixing component related stuff inside blocks and then you put everything inside style(???)

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.

#1205June 14, 2018by ionic6662 answers
0 reactions

create block for charts

hi,First of all, I wish you a happy life.i have created a block for charts like: I don't know how to get chart from my block.Global variables are not available. And i also want to modify configuration items for charts

artf

I don't know how to get chart from my block. Global variables are not available. I don't understand what do you want to doAnd i also want to modify configuration items for charts You can use changeProp to get the property value of your com...

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.

#1204June 14, 2018by afaraha84033 answers
0 reactions

Unknown Error $jscomp is not defined on uploadFile

I am facing a weird error that I am unable to properly trace. It happens when i drag and drop an image for upload. When I click on the line "at fetchFile (grapes.js:17107)" I see this function Please note that I have modified the uploadFile with the below code that I have adapted from the original source Your help is...

afaraha8403

Hello anyone here. I hate to see all my hours of work in this go to waste. All opinions welcome!

artf

When I click on the line "at fetchFile (grapes.js:17107)" I see this function Which is just a step before you real issue... click on uploadFile step and you will find the 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.

#1203June 14, 2018by jonaaix2 answers
0 reactions

FEATURE REQUEST: Export as single HTML5 document

It would be really nice to have an option to export as a single HTML5 document, including html/head/body, and embedded css between <head><style>{{css}}</style></head>

artf

Look how the original ExportTemplate is done, then add your own export command

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.