I'm trying to save to a remote database from a local grapesjs editor. Although I'm able to hit the endpoint it's giving me a 204 NO CONTENT. this is the server I set up: var express=require('express'); var app=express(); app.use(bodyParser.urlencoded({ extended: true })) app.use(cors()); app.post('/grapesjs', function...
artf
The remote storage doesn't expect any kind of return from the store endpoint, so any 2XX status code is ok
jvrjosephlouie
Hello, im also getting the same response and im not receiving any data from my api. Does it require a request method for it to be able to function successfully? thanks. const storageManager = { id: 'gjs-', type: 'remote', autosave: true, a...
Hello all, I am using grapesjs version 0.14.52. I am having the following issue: When I drop a link block inside the canvas, I can use the following linkModel.get("content"), to get the content of the link. But once I set a new content, using linkModel.set("content", "whatever"), linkModel.get("content") starts return...
prosenjit-manna
Duplicate #2013
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.
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 all, I am using grapesjs version 0.14.52. I am having the following issue: When I drop a link block inside the canvas, I can use the following linkModel.get("content"), to get the content of the link. But once I set a new content, using linkModel.set("content", "whatever"), linkModel.get("content") starts return...
artf
Unfortunately, this is due to the not consistent logic in the ComponentTextView https://github.com/artf/grapesjs/blob/3f053af969ef6a688d526d158b9df7e6aa076838/src/dom_components/view/ComponentTextView.js#L87-L114 So, if you use the built-i...
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.
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 want to add some functions for all components accessible. when initialize editor, there is a option like protectedCss. Isn't there a way javascript like above?
artf
You can initialize custom js in the canvas in this way:
webdeveloper0429
Thank you. Btw what I want to need is inline javascirpt. not external link... regards.
artf
In that case, I suggest you access the document of the iframe and to append manually the inline script (to get the document use editor.Canvas.getDocument())
Hello all, Im using grapesjs-webpage-preset plugin and I would like to combine my gjs-html with my gjs-css so that all of the styles are inlined. I managed to do that while using 'juice', now I would like to store the gjs-components based on my new combined gjs-html with inline css. Any suggestions ?
prosenjit-manna
Do you want to use it for a newsletter? See the repository https://github.com/artf/grapesjs-preset-newsletter
Amir2828
Actually I wanted to do it so I can use the preset-webpage with inline styles, But I already Managed to make it. It could be helpful if i could use 'juice' and a function that converts html to components. Unless no one know about a already...
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, since the latest version, I noticed that when I use the droppable query selector using [data-gjs-type="my-component-type"] no longer seems to work. I have added two codesandbox demos to show you the issue. I am not able to figure out what changed. Hope it helps, thanks!You're submitting a BUGAre you using the late...
artf
Ok seems like the regression was introduced by this change: https://github.com/artf/grapesjs/commit/702ba828b13bae4b64bfd7bc79f23d8909d757f4#diff-6aa74cf54855daa6ca63a5d1e8b77c44R358 I'll fix it in the next release. Thanks for the report
I have some custom components created before modifying their traits (for example, I created a new trait for it), these components wont contain the new trait. If I drag a new component into the editor, it will have it. Steps to reproduce: 1) Create a custom component and compile the code 2) Drag this custom component i...
kaoz70
@Lakshit-Singhal In that case I think the best option would be to create a custom plugin, and before you initialize GrapesJS, call the API, get the values and pass them in the initialization function via the plugin's options, that way they...
artf
This happens because the editor stores also traits information in components. You can delete this information be extending the component and updating its toJSON method ps: I think I'll remove traits from JSON in the next release. Perhaps m...
ahmedeldeeb25-zz
@artf this removed custom traits !! as I mentioned in #2007
hello @hello @artf I am trying to extend the link component and add new traits like href and target the code is given below. `function loadWithOption(opts) { editor.DomComponents.addType('link', { model: dModel.extend({ defaults: Object.assign({}, dModel.prototype.defaults, { traits: [ // strings are automatically con...
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 ! I have some issues when i want resize an image. When i put an image and when i click one resizer handler, the image don't keep his height but expand it to 100% of parent container... I didn't found an option into the "resizable" option to disable that : editor.DomComponents.addType('image', { model: { defaults: {...
afdallah
It would be easier for everybody here to help you if you can provide a live demo. I experienced the same issue, but in my case, it was because I set the image height to auto. Here is the example of my old issue:
MisterFK
Thanks but it's not the same issue. I take a video to show the problem :
artf
Thanks for the report @MisterFK can you provide a live demo of the issue, please?
how do I make it possible to add new components after the component I selected, at this time I use editor.DomComponents.addComponent (block); , but new components are added at the end, not after the selected component, Thank you
artf
You can also use this to get the index of the component index = editor.getSelected().index()
fmr411
clear, I use index
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.