GrapesJS Issues

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

829 issues found

๐Ÿ” question
#405October 11, 2017by NicholasGati3 answers
0 reactions

Can't drag list item inside of unordered list

Ciao, spero che stai bene e grazie per GrapesJS! I am trying to create a way for users to create multiple choice questions. The first block below is the section that has a form with an unordered list inside of it. The unordered-list inside of the form should be able to accept a list item, which is another block in its...

artf

Hi @NicholasGati I think it might be an issue with data-gjs-stylable="false" can you try to remove it from <ul> and <li> and check if it works

NicholasGati

Hey @artf, thanks for replying. I removed data-gjs-stylable="false" and it still does not work. I get the same error: 'Target collection not found, Target is not droppable...'.

artf

Are you able to reproduce it by using something like jsfiddle/codesandbox?

#399October 10, 2017by bungambohlah3 answers
0 reactions

[Question] Can i push toolbar in current modal and current modal child?

Hello again @artf , i confuse about push toolbar in the element with specific class (ex: modal-trigger) the element code is : and in the /src/dom_components/model/Component.js as you can see, the element to push toolbar just in tag element, and can i push toolbar to all element inside ? Thank you and sorry for my bad...

artf

I'd say the correct way to do so is to extend initToolbar() of the Component model and put there you logic

bungambohlah

I'd say the correct way to do so is to extend of the Component model Of course, i make my custom toolbar in method and please @artf can you explain about the logic to push the toolbar in the child object? i confuse about the backbone struc...

bungambohlah

Sorry i have fixed this with my logic, thank you @artf :+1:

#383October 5, 2017by daniel-farina3 answers
1 reactions

Best way to load element's css into the properties panel.

Hi Again everyone, GrapeJS is too much fun once you get deep into it. I have a simple question: What's the best way to load the css from a newly created element to the properties panel. For example I have the following box which has a black background: The black background comes from the style in the element The edito...

daniel-farina

@artf I undertand now I completely missed the checkbox next to each selector. Setting the forceClass to false solves all my problems! I dont really need that as I'm keeping the source code extremely lean with as little divs as possible. Th...

daniel-farina

I discovered that if the div has no class and just style then a single class is created and the background is applied to the properties panel: so that would be a partial solution for now but still looking for a better alternative.

artf

Hi @daniel-farina you don't see .c1019's background because your component has two classes so, by default, the Style Manager select the CSS rule where the selector is a combination of all its classes, in your case .col-8.c1019. If you want...

#368October 3, 2017by mekamleshk3 answers
0 reactions

POST/GET all the three fields

Hi, I am trying to store and retrieve data in/from database using below fields : 1) Template Name 2) Template Data 3) Status The question I have is urlStore/urlLoad is only sending/retrieving Template Data Is there any way I can POST/GET all the three fields ? @artf @cmcintosh

arthuralmeidap

@mekamleshk You have to do in a custom way. Using the GrapesJS Api you can achieve this

mekamleshk

@arthuralmeidap Can you throw some lights on it, Like a example or something

arthuralmeidap

@mekamleshk, This (API-Editor)[https://github.com/artf/grapesjs/wiki/API-Editor] has a lot of methods. One of them is getComponents that you can get the data from inside the grapes or getStyle that you can get style data used for the page...

#363October 2, 2017by bungambohlah2 answers
0 reactions

[QUESTION] How to get child object ?

Hi @artf i want to ask about get some child from current model, let's say in that source code, can i get child object like get parent object ? thank you, and have a nice day

artf

Sure

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.

#339September 27, 2017by mekamleshkNo answers
0 reactions

Save the template into Database

Hi artf, thanks for creating such a wonderful framework, I am using it for newsletter. I just had a question on how can I store the template into my database and retrieve it for different types of newsletter I create.

#336September 26, 2017by DwolinHNo answers
0 reactions

[Question] How to disable editing on fetched content

Hi, i want to integrate your project into an existing webpage as a kind of CMS-editor. It is necessary for the editor to wrap the whole body of the page, but i want only parts of the fetched content to be editable. The website header, sidebar and footer should be unchangeable. Is there an option to differentiate betwe...

#333September 24, 2017by cmcintoshNo answers
0 reactions

Expand Documentation

It would be good to add a couple of pages in regards to what the accepted Block attributes and other parameters that can be used as a part of the documentation. Additionally, documentation regarding the proper method of including external styles/js libraries would be good as its own wiki page as I have seen multiple q...