GrapesJS Issues

3,464 parsed GitHub issues 370 solved · 90 open. Search, filter and explore battle-tested answers.

1,399 issues found

🔍 outdated
#475Nov 1, 2017by ateshuseyin3 answers
0 reactions

Open confirm dialog before removing assets

I want to open a confirm dialog before removing image from assets manager. There is not any feature at the same time there is no appropriate api for it.

artf

You can use this code from Assets documentation Put it inside a plugin otherwise it won't take effect on already defined images

ateshuseyin

@artf Thanks

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.

#473Nov 1, 2017by arunBenchamin2 answers
0 reactions

External Style Sheet

Nice work .Got a little problem if the styles for the web page is moved to a stylesheet then most of the css properties in decorations sections not loading from stylesheet. (eg: background-image property for header)

artf

This is a correct behavior if you're loading CSS as a remote resource. One workaround, for your case, would be to load CSS via ajax and add the result with editor.addComponents('<style>${cssText}</style>')

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.

#472Nov 1, 2017by mekamleshk2 answers
0 reactions

Modal

Hi @artf I am trying to save my template in database on click of save I wanted to show a success message in toast. Can you please help me with some example code.

artf

Use storage events (you can find the complete list of events here: API Editor)

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.

#471Nov 1, 2017by tomichal3 answers
0 reactions

Third-party library styles collision

Hi, I would like to include a third-party styles and javascript in the editor. They are being added like this: The issue I'm experiencing with the third-party CSS is that some of its style rules are colliding with the style rules of the editor, e.g. the third-party library uses a class "row". Is there any recommended...

tomichal

I looked inside the https://github.com/artf/grapesjs-blocks-basic plugin and it looks like the problem I'm experiencing is coming from there, namely the plugin does not use the grapesjs editor's config setting, despite initially fetching i...

artf

Hi @tomichal seems like you get exactly where is the issue. I close this in favor of https://github.com/artf/grapesjs-blocks-basic/issues/2

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.

#470Oct 31, 2017by mekamleshk3 answers
0 reactions

Modal Error

Hi @artf When I try to click on the sent-test button it gives me this error, I tried with the updated version of grapesjs-preset-newsletter

artf

@mekamleshk that button was removed, you can check it also here http://grapesjs.com/demo-newsletter-editor.html

mekamleshk

@artf I know you removed it earlier, but I was using it as pop up box to save my template into database. Is it that it is completed removed from the framework ?

artf

It never was part of the framework, it's just a custom panel I used in https://github.com/artf/grapesjs/blob/gh-pages/demo-newsletter-editor.html

#467Oct 31, 2017by perfect-coders3 answers
0 reactions

Set the focus to some other element

I am opening a pop up on click o some element, but the focus is still on the element on which I click. I want to focus the pop up element. Is there any way in grapesjs ?

artf

Which popup are you talking about? The built-in modal?

perfect-coders

I have make one custom pop up in grapejs and opening on element click. So I want when user click on the element , a pop up will open and the pop will be selected by default. Now what happens, I am opening a pop up element on click of link...

artf

well, if it's your custom popup I think it's up to you managing the focus

#466Oct 30, 2017by arthuralmeidap3 answers
0 reactions

Disable button

Hi, I added a new button in Options Panel and now I'm trying to make it disable while a given criteria is not ok. For now, I tried to use the myButton.set('active', 1) but this is not I'm looking for. I take a quick look on GrapesJS code and I didn't see an option to disable the button or make it "unclickable". Is the...

artf

Hi Arthur, unfortunately, there is no 'disable' feature, but it'd be cool to have

arthuralmeidap

hi @artf , I will try to work on that, ok? I will starting adding a new disable attribute for the button. What you think?

arthuralmeidap

Hey @artf , This is not related to this issue, but do you know when a next version will be released? There is some improvements on dev branch that would be nice to have them.

#464Oct 30, 2017by jiggyt2 answers
0 reactions

Adding class to style?

Hello, sorry if this was asked before but i searched and couldnt find anything re this. How would i reference a component (textbox) under content to a default unique class instead of having to type the css attribute one by one? e.g. (not working) below, input-control is the class. id: 'email', label: 'email', category...

artf

Use classes key

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.

#463Oct 29, 2017by roytang3 answers
0 reactions

Is the video component on the webpage demo working?

I wanted to study how to use the video component but the one on the demo website (http://grapesjs.com/demo.html) doesn't seem to be working? Dropping a video component into the canvas shows a still photo with some lights. If I click the edit icon, the photo editor opens with no content and no toolbar and a bunch of JS...

artf

It's not a photo but actually, a video (I just turned off autoplay), if you toggle controls and turn on the preview you should be able to see it play. About the edit button, I think it's a bug, should not be there, I'll check it later

roytang

How to toggle controls and turn on the preview?

artf

#461Oct 28, 2017by roytang2 answers
0 reactions

RTE toolbar appears in the top panel

Hi, We recently updated GrapesJS from 0.8.8 to 0.12.15. After the upgrade, I found that the rte-toolbar appears in the top panel for some reason. I've tried doing a clean call of grapesjs (copied from the wiki): But the toolbar is still there: https://i.imgur.com/gcaBti2.png After I double-click the "Hello world" text...

artf

Seems like it's just not hidden on render, will fix it for the next release

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.

Browse all topics