GrapesJS Issues

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

829 issues found

๐Ÿ” question
#1792February 14, 2019by abozhinov2 answers
0 reactions

[Question] Exclude some components from final html (Multi-level)

Hi, I have a question about how to exclude HTML from editor->getHtml(). My structure is something like that. ParentChild -- Child --- Child I want to save the HTML from the last Child. How to do that?

abozhinov

This is my solution: domc.addType('layout', { model: defaultModel.extend( { defaults: Object.assign( {}, defaultModel.prototype.defaults, { removable: false, draggable: false, droppable: false, badgable: false, stylable: false, highlightab...

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.

#1789February 13, 2019by sunhillbd2 answers
0 reactions

[Question] How to append a plus icon in the column and element section?

Hi @artf . First of all, great work. I have been trying to use grapesjs for a month now. So, I stumbled upon a situation where I need to let the user show the block sidebar when they click on a + icon. This would have given the users a bit more simplicity. Any guideline on how I can achieve this? See the attachment pl...

artf

Hi @sunhillbd I think this is a perfect case when you should use the view in components. The "plus button" is part of the component but only inside the canvas/editor and it shouldn't be exported in the final code https://jsfiddle.net/xcv07...

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.

#1788February 12, 2019by ovesyan191 answer
0 reactions

[QUESTION] How to dynamically add assets from the server after editor initialization?

Hi! Thanks for the work you've done building this cool library! I am using latest angular and stuck with issue when I open image library in editor and there is no collection. Collection will go from the server. When I add some image then I see whole images set that were saved before, but at first time collection is em...

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.

#1787February 11, 2019by ateebahmed3 answers
1 reactions

[Question] Change HTML of Panel buttons from span to button

I have created some Panels and would like to change the element of panel buttons from span to button as its more appropriate and looks better with CSS, how would I configure it?

artf

Right now it's not possible, but I'll add this possibility in the next release, so it'll be something like this:

ateebahmed

That'd be great!

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.

#1786February 11, 2019by Saurabh-Devade1 answer
0 reactions

Not able to add the random id to the custom blocks i am adding

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

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.

#1777February 6, 2019by bm2ilabs2 answers
0 reactions

[Question] How to dynamically change the DomComponents ?

Hello , Thank you for this great library , i am working with a newsletter system that get content from the database and generate the latest articles in the site , i created a dynamic block with dynamic type that has source setting , when the user add the source it send a request to the url and it should get the conten...

artf

You don't need to extend the model in this way you can just update the toHTML method if the current instance, eg.

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.

#1776February 6, 2019by shrnfnchr2 answers
0 reactions

[Question] Add read-only trait for all controls

We are using grapejs to create webpages. We are doing some back end manipulation of the json to link each child of the html (usually a row) to a record in our database. To that end, I've added a trait to every component called custompk. Upon saving the grapejs, I loop through the first level of components and add a re...

artf

Create your own trait https://grapesjs.com/docs/modules/Traits.html

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.

#1765January 30, 2019by ghost1 answer
0 reactions

[Qusetion]: Production version number

Hi just a quick question I've noticed that the dev branch is at version 0.14.52 but the master branch is still at 0.14.43 even though the documentation (https://grapesjs.com/docs/#why-grapesjs) states 0.14.52 as the latest and also the demo uses 0.14.52. What I'd like to know is if 0.14.52 is production ready and has...

artf

.. and has just not been moved over into the master branch yet Yeah, in this case, 0.14.52 is the latest

#1761January 29, 2019by Ramkumar-Murugesan2 answers
0 reactions

[Question] how to defined textNoElement value after grapesjs.init

Hi, I try to define the values for textNoElement after I was initialized a grapesjs. but it not reflected in grapesjs UI. can anyone please help me but its shows

artf

Do this: editor.StyleManager.getConfig().textNoElement = '...'

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.

#1753January 24, 2019by arachnosoft3 answers
0 reactions

[Bug/Question] StyleManager - SectorsView - addToCollection() uses "name" attribute to build the ID and fails with several spaces or special characters

Hi @artf , Using the pluginOpts property from the grapesjs.init() method, I customized the sectors displayed on the Style Manager (through the Newsletter plugin), like this: The goal being to translate the labels into another language. But I found that the "name" property is also used... to build the id attribute of e...

arachnosoft

Here is the screenshot I mentioned earlier:

artf

If using the "name" attribute is intentional here, and not a copy/paste mistake (in case you meant model.get('id') instead of model.get('name')), what's the purpose of this? Rather than using, say, an "id" property we could define ourselve...

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.