GrapesJS Issues

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

829 issues found

๐Ÿ” question
#1521October 16, 2018by Controlhaus3 answers
0 reactions

[QUESTIONS] S3 file upload example

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.

#1519October 16, 2018by Controlhaus3 answers
1 reactions

[QUESTIONS]: Init components in grapesjs.init

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.

#1511October 12, 2018by mcsekar121 answer
0 reactions

[QUESTION] Change the html content of the selected component

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.

#1508October 12, 2018by ghost2 answers
0 reactions

[Question]: Refresh Canvas after changing gjs-html externally

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

#1504October 11, 2018by dlorenzo3 answers
1 reactions

[Question] Dynamic height

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.

#1500October 11, 2018by chaitanya112 answers
0 reactions

[QUESTION]: how to save and import created design

after creating some designs how to save and import them in to grapesjs?

chaitanya11

Got info from #778.

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.

#1499October 10, 2018by coder-strange3 answers
0 reactions

[Question] Is it possible to perform dom manipulation through the block's contents script?

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.

artf

Use the latest version please

#1498October 10, 2018by SeongwoonHong2 answers
0 reactions

[Question] Is it possible to save images as public url? not base64

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

artf

Sure https://grapesjs.com/docs/modules/Assets.html#uploading-assets

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.

#1494October 10, 2018by DigicreateJens2 answers
0 reactions

[Question] Tailwind classes

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.

#1493October 9, 2018by dancodes3 answers
0 reactions

[QUESTION] render() works on the first time but not on subsequent calls

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.