#1212June 18, 2018by sfrancy3 answers
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
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
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
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
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.
#1207June 14, 2018by kuldeepcis1 answer
When we save social block with link block after reload the page. Both element display network drop down.
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
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
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
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
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.