GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

644 issues found

๐Ÿ” components
#1281July 13, 2018by tomichal3 answers
0 reactions

What is the proper way to initialize the editor with an already existing HTML and CSS content?

Hi @artf , it seems that in order to initialise an instance of the editor with an already existing CSS you can either give the editor "gjsstyles" or "gjscss". Similarly for HTML it's either "gjscomponents" or "gjshtml". What is the proper way? So far the way I've been doing this is to have this code run just before ru...

artf

Am I doing this right? Not really. You have to setup the remote storage

tomichal

Thanks @artf !

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.

#1280July 12, 2018by HakuTheWolfSpirit3 answers
0 reactions

Rendering third party components in grapessj editor

Hello, we'd like to render third party controls. This is a general question and we wan't to know whether we are going into the right direction. To render the controls we are required to use a third party technology (Vue, React, or similar frameworks). Both of the frameworks have one common problem: they are lagging th...

artf

Vue compiles at runtime if you use the version with compiler. Exactly like this component https://github.com/alexjoverm/v-runtime-template As second question I'd like to know whether it is possible to hook onto events from the editor from...

HakuTheWolfSpirit

Hi, thanks for the answer.Vue compiles at runtime if you use the version with compiler. Exactly like this component https://github.com/alexjoverm/v-runtime-template The problem with Vue is that there is not really a method that allows me t...

artf

The problem with Vue is that there is not really a method that allows me to put a string in as parameter and get html as an output. I have asked this question on StackOverflow and hopefully I will get an answer in near time. yeah but you c...

#1275July 11, 2018by dsgh1 answer
0 reactions

[Bug] Undefined variable: comp

When using non hoverable components, I'm getting this error. PR incoming.

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.

#1274July 11, 2018by jvillena3 answers
1 reactions

Remote storage option is not sending in $_POST the JSON structure

Hi @artf! I'm working to adapt your content builder in our system using the latest release v.0.14.21. I have set up the following configuration of the StorageManager: storageManager: { type: 'remote', stepsBeforeSave: 1, autoload: true, autosave: false, urlStore: '/save', urlLoad: '/load', contentTypeJson: true }, Wit...

jvillena

Thanks a lot! It works like a charm! Great Job. We are going to work in different new plugins so we will include them as open source as well. I'll keep you inform.

artf

We're using fetch under the hood so check this out https://stackoverflow.com/questions/36669911/post-not-retrieving-data-from-javascripts-fetch and let me know

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.

#1266July 9, 2018by kuldeepcis2 answers
0 reactions

Could not load updates images in the assetmanager

We are saving the components to the MySQL database .So when we load the components we don't get updated value for example in asset manager the images present in it are 4 and we add one image and save it then whenever we edit the image we see only those 4 images even we have uploaded many images after that to asset man...

artf

Assets have nothing to do with components, you have to store them too. https://github.com/artf/grapesjs/wiki/Assets

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.

#1258July 4, 2018by YashPrince2 answers
0 reactions

Style is not copying after cloning the element after Save

Hi @artf. At the first time before saving the template, When I make one element and clone it, the style is coming in the clonned element. That is running fine. But when I save the template using Ajax and Call the below code:- and then clone the elements, their styling does not applies to the cloned elements. If I comm...

artf

Follow the issue template and provide a live demo

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.

#1255July 3, 2018by jdodsoncollins3 answers
2 reactions

[QUESTION]: How to set editor html contents from custom component?

I'm having trouble getting a custom block+component to display its template HTML inside the grapes editor. Within the exported HTML, the markup and CSS is generated as expected. Within the editor though, the block doesn't leave behind any sort of UI (though it is dragging in successfully based on the exported html/css...

artf

Well with this this.attributes.template = ... you do nothing to the view so it's just empty. You have to update the model so the view reacts to the change. Eg.

jdodsoncollins

This custom component is an adaptation of https://github.com/artf/grapesjs-blocks-flexbox

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

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

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

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