GrapesJS Issues

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

829 issues found

🔍 question
#1241June 26, 2018by SalesFeed3 answers
0 reactions

[Question]: new style is not reflected in panel

Hello, In my project I have replaced the AssetManager by my own. However, when I use the new manager to update a components background-image, the background-image shows up, but the new state isn't reflected in the panel. Basically my question is: how do I detect what property or attribute the user is editting? And how...

artf

First of all, I'd avoid applying the style on selected component editor.getSelected(), you should do it on opts.target as it might be different from the selected one editor.runCommand('open-assets', { target: someOtherComponet })how do I d...

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

SalesFeed

@artf Thanks, I followed your suggestions, but I can not get it to work. opts.target does not have a addStyle method It also seems the editor is generating an extra id in the css, so there are duplicates. I have set avoidInlineStyle: true,...

#1230June 25, 2018by pintor-mato3 answers
0 reactions

[Question]: Doctype in the canvas iframe

Hey @artf, I noticed the canvas iframe doesn't appear to have any doctype set on it, which causes it to be in quirks mode. Is this intentional? I'd like to set it to <!DOCTYPE html>, but doing so causes some positioning issues that you can see in this screenshot and demo. Would you be open to a pull request that would...

artf

which causes it to be in quirks mode Which browser?

tomichal

@artf One issue I noticed with the lack of doctype is with HEX color definitions. If a user defines a HEX color as, e.g.: "fff", rather than "#fff", this will work in the editor, but once the page is rendered inside a HTML with doctype spe...

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

#1223June 20, 2018by ogousseau2 answers
0 reactions

[Question]Asset Manager Upload in ASP.Net

I want to save file when i upload in dropzone, to do in init And in my Controler ASP.Net SuperAdmin : But formdata is always null ??? What i wrong ? (i'm beginer why JSon) Merci beaucoup.

artf

Check via devtool if the request is sent from your browser, the server part is up to you, can't help you there

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.

#1222June 20, 2018by laziest-coder2 answers
0 reactions

[Question] Adding new feature for BlockManager

I want to use grapes.js to create a website constructor for clients and when they show the design it should show the price of constructed website according to how many elements are used. What I am struggling in is that I can not create variable called "Price" and when from Blockmanager something is dragged and dropped...

artf

Currently, you should try with something like this BTW I'd like to re-enable block specific events, so probably with the next release the process will be more concise

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.

#1220June 19, 2018by JulyanoF2 answers
0 reactions

[Question] Manipulate elements into a selected block in command

How can I manipulate elements into a block content? For example: My block: My component: Command:

artf

var myImg = editor.find('img') there is no editor.find method

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.

#1218June 19, 2018by FrciSmrci3 answers
0 reactions

[QUESTION] Asset Manager - Upload Image

Hey @artf , I have a question around Asset Manager. When uploading an image via computer or url the preview shows up at the asset collection in the modal, but after double clicking - selecting it the element in the canvas doesn't have a src. When opening the Asset Manager again after the upload and selecting the image...

artf

Can't reproduce it on the demo, are you working with the latest version? Can you provide a live example?

FrciSmrci

Hey @artf , the problem occurs only on newly uploaded pictures - which isn't possible to do in the demo. You can only select the ones that are already in the storage. After upgrading to the latest version from 0.14.15 the asset:add event i...

artf

the problem occurs only on newly uploaded pictures I've tried to add it via url as you've suggested and it works as expected After upgrading to the latest version from 0.14.15 the asset:add event isn't firing anymore. Same, not able to rep...

#1215June 18, 2018by ogousseau3 answers
1 reactions

[Question]Adding Google Font doesn't work

Bonjour, I try to add Google Font : When i click on Typography, script stop in Grapes.jp show: function show() { this.$el.addClass(this.pfx + 'open'); this.getPropertiesEl().style.display = ''; <=== style is null ? this.$caret.removeClass(this.caretR).addClass(this.caretD); }, Where it's wrong ? Merci.

artf

I think the real issue here is a need to have methods like which then update the view accordingly to the change. So I'll add them for the next release. For now, declare your Style Manager in init configuration object or try with something...

ogousseau

Super merci. !!!!!!

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 !!!!!

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