GrapesJS Issues

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

829 issues found

๐Ÿ” question
#781January 20, 2018by GoodPHP2 answers
0 reactions

[QUESTIONS] How i can customize this element?

How i can customize this element? It's component settings Who know, please help. Thank you!

artf

Read here please 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.

#767January 16, 2018by frank-tenzing2 answers
0 reactions

Generate a new grapes.min.js after make changes to grapes.js

Hi guys - happy new year, I'm currently doing some investigation of GrapesJs for our further project. The question is I fellow the https://github.com/artf/grapesjs/issues/196 to minify a new grapes.min.js, but when I deleted the grapes.min.js and tried to make some change in the grapes.js which is in the dist folder,...

artf

@frank-tenzing you shouldn't edit files in the dist folder, those are generated every time by npm run build You have to edit files inside src. BTW that code seems to come from cash library, not grapesjs itself (about the issue let's keep t...

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.

#721January 5, 2018by wvaymen2 answers
0 reactions

adding component script js

I have question about injecting script js into GrapesJs. Can I adding <script> into grapesJS using function editor.getComponents().add() and not injecting using javascript. document.createElement('script')

artf

@wvaymen sure, but you have to enable script importing before

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.

#697January 2, 2018by vishal50333 answers
1 reactions

Question: Dropping external element into blocks

Hello, I want to drop external elements ( for example, tree view node) into blocks. Can you please help me out to show a way, how to achieve that? Thanks,

artf

@vishal5033 probably in the next release

artf

Hi @vishal5033 currently the canvas is not a droppable element but I've added HTML5 D&D support to the Rodmap (#74)

vishal5033

Hi @artf , Can you please share, when will HTML5 D&D available?. By the way thank you very much for such a wonderful project. Thanks

#696December 31, 2017by NHKK2 answers
0 reactions

click binding question

Hello everyone, I'm new to all of this and I've been going through the documentation but I still dont understand how to bind click event. I have 2 files the first file is and second file is Does anyone have an example of binding?

artf

Hi @NHKK if your goal was to extend input component with some binded event you were almost there (you just need to use comps.addType)

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.

#667December 21, 2017by tlatforlz2 answers
0 reactions

Question about Asset Manager

Hi @artf , I have two question about Asset Manager. How I can set a image by select, current logic after I upload image, I must select image in list Asset ? I want after I upload Image, I set it in the component.How I can reload Asset. I write api to save image in Get Image. Image auto save in Asset. I want reload Ass...

artf

Hi @tlatforlz first of all check out the docs page about Assets which could be helpfulHow I can set a image by select, current logic after I upload image, I must select image in list Asset ? I want after I upload Image, I set it in the 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.

#660December 20, 2017by TWCM3 answers
1 reactions

Select Parent Function not working when parent element is not selectable

Hi @artf, I have a question about select parent function. Cannot select the parent when parent element is not selectable, suggest to skip the parent element then select parent's parent element until to the div#wrapper.

ryandeba

I could probably help out here - I'll try to make a pull request later today or tomorrow.

TWCM

Hi @ryandeba, Thanks for your effort.

TWCM

Hi @artf, more one question, can i have a enhancement for select command, when the cursor click or hover the element which is not selectable, then the selection jump to available element. Since the element not available to select, i want t...

#637December 14, 2017by frank-tenzing3 answers
1 reactions

Add new block without any hard coding

Hi @artf , We are gonna to embed this grapes editor into our portal as an Email editor. As the Email will be sent by the batch process to customers, merge tags will be implemented in order to replace the variables in the template by the actual values such as names, ages, addresses of the customers. At the moment, the...

hoainam12k

hi @frank-tenzing, I think you should do it on server side, not in the Grapes editor. For example create a manage form for merge tags and send it to Grapes with API-Rich-Text-Editor. This way you can make some merge tags are available for...

artf

we need to make the merge tags can be added from a button on the panel and then save the added tags to a config file or DB Well, this is up to you building such a thing. The user creates a tag using your New Merge Tags panel and update stu...

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.

#630December 12, 2017by kkuksin2 answers
0 reactions

(question) Is it possible to set categories dinamically?

Thanks for your component, I like it very much. I have some dinamic blocks (I have tabs and when I change tab, I add group of blocks and remove the other group of blocks. The issue is that when I remove old blocks, I can't remove their categories. If I remove their categories with js ( document.querySelectorAll('.gjs-...

artf

@kkuksin you don't need to remove blocks/categories, you should just rerender blocks. We discussed about blocks and tabs here #499

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.

#626December 10, 2017by z1lk3 answers
0 reactions

Placing non-editable HTML around wrapper

My CMS works like this: sites can have one theme and many templates under that theme. Themes are rendered on every page, and templates are rendered only on specific pages. I have successfully integrated GrapesJS with my existing template editor, but I have a question: is there any way to render a theme around a templa...

z1lk

I've fiddled with the code and made a small patch that fits my needs. A config option surround lets you specify an ID, which represents an element in the container. This DOM subtree is plucked out during the main initialization, stored in...

artf

Greate @z1lk I think even something like this will work I close this as you've solved your case

z1lk

I used a solution similar to yours so I don't have to maintain changes to the Grapes source. Sometimes the position of the component "tools" are out of place, as if their vertical offset is computed relative to the body and not the wrapper...