Are any examples of using Aws S3 to store asset files available?
Controlhaus
To upload to S3 direct from the browser, a pre-signed URL needs to be obtained from the app's server first. The URL needs to contain the file's name. Is it possible to assign the asset manager's upload URL in the before upload event? This...
artf
Check this PR https://github.com/artf/grapesjs/pull/1430 To update the config of the upload url: editor.AssetManager.getConfig().upload = 'asdasd'
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.
Is it possible to initialise the components at grapesjs.init. We are not using StorageManager.load. We already have the project data at init. Using html works fine, but using components renders the components object as text in the editor. this.editor = grapesjs.init({ components: projectData.components || projectData....
cjpollard
You need to parse the string. JSON.parse(projectData.components)
Controlhaus
Working now. Thank you for the fast and accurate reply :-)
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 am trying to replace the html of the basic Text componet using the below code const component = editor.getSelected(); component.set('content', 'Test'); It gets changed in the canvas but the code still has 'Insert Your text here' appended to it as shown in the below image.
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've been using GrapesJS with ReactJS (GrapesJS sits inside its own react component) and I'm having an issue uploading an image using my own react file-picker component. When I select an image from my filepicker react component, as its external to GrapesJS I manually update the gjs-html item in the local storage w...
ghost
Looks like I forgot about the DomComponents, after downloading and having a look through the src for grapesjs-newsletter, I was in the openImportCommand and noticed how the DomComponents were being updated. So I added the following into my...
cederron
Looks like I forgot about the DomComponents, after downloading and having a look through the src for grapesjs-newsletter, I was in the openImportCommand and noticed how the DomComponents were being updated. So I added the following into my...
Hi: Is it possible to have an instance of GrapesJS with dynamic height, as in, the editor adjusts to the content size. What I'm trying to do is to embed GrapesJS in a page with other elements (header, footer, etc.) and having only one scrollbar for the entire page. As you insert content in the editor, the page as a wh...
dlorenzo
Got it working pretty nicely listening to the 'component:update' event, calculating iframe content height and applying it to the editor. Thanks.
artf
Not by default, but you should be able to do so by relying on Events
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.
Hey! First of all thank you so much to build such a great and versatile tool. Is it possible that I can manipulate the dom elements of the block through block's content script? Eg. Basically I need a survey kinda block, where user can drop question block and then can enter the question string. Once again thank you so...
artf
Sure, but be sure to understand correctly the context of script and how it works https://grapesjs.com/docs/modules/Components-js.html#components-js You can't use $ if you didn't include it first
coder-strange
@artf I've added the jquery, in the above image I've added the value attribute to input tag as we can see that in the above image, but that value attribute is not there in the final HTML I'm getting from the editor.
Hi, I'm wondering if that's possible to save images as public url for instance, https://something.something.jpg so that anyone can access the image? Currently, it is saving images as base64
I'm looking to use Tailwind with GrapesJS, but this framework uses Utility-First CSS Classes to build quick layouts. The problem is that it also uses 'special' classes to define style variants, eg: hover:bg-blue or md:w-full etc. The problem is that the GrapesJS Selector escape function replaces the colons(:) with das...
artf
I'd appreciate a PR :)
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, I've created a custom component that shows images using background-image on a <div> instead of using an <img> element. It's mostly working, except that every time I change its src trait I must reload the editor to preview the rendered element. This is its view: On editor load, the component has its correct back...
artf
@dancodes can you provide a live demo of the issue, please?
no-response[bot]
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...
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.