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