GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#505November 10, 2017by adamlc1 answer
0 reactions

Spectrum styles

We use Spectrum in our App and the styles in Grapes override our styles. Could you maybe wrap the styles with ? This would solve our issue and it shouldn't affect anything with the 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.

#503November 10, 2017by sanjeevSavitr3 answers
0 reactions

command event that is triggered when we click "Hide Preview"

Hi, editor.on('run:preview', () => { console.log('preview ON') }) This is working fine. Now I need the command event that is triggered when we click "Hide Preview".

artf

stop:preview

theanhmx

editor.on('run:preview', () => { console.log('preview ON') }) editor.on('stop:preview', () => { console.log('preview OFF') }) i tried this but the stop:preview event didn't fire

artf

Fixed by https://github.com/artf/grapesjs/pull/592

#502November 10, 2017by sanjeevSavitr3 answers
0 reactions

Hide a particular component in preview

Hi, Is it possible to hide "BannerOptionsBtn" component when I click preview button. I Used toHTML() function. And when I called editor.getHtml() it is returning the html as expected, but when I click preview button the "BannerOptionsBtn" appears. Here is the code. Please Help me domc.addType('bannergal', { model: def...

artf

You can make use of command events inside your component, eg.

sanjeevSavitr

Thanks for the help. And please send the command event that is triggered when we click "Hide Preview".

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.

#501November 10, 2017by mtavkhelidze2 answers
0 reactions

Add custom CSS rule

Hi! I would like to add a CSS rule that, for instance, changes appearance of a component based on some attribute. I.e. Is there a way of doing that programmatically? Or any other way for that matter. Thanks, Misha

artf

try with this

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.

#500November 10, 2017by vishal50332 answers
0 reactions

Add new property in Style manager

I want to add new property as Line height in Typography in Style manager. Can you please help me out? Also, how to apply css formatting to particular element by selecting this newly added property.

artf

You can get it from the demo https://github.com/artf/grapesjs/blob/gh-pages/demo.html#L1054

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.

#499November 9, 2017by arthuralmeidap3 answers
1 reactions

Tabs inside Panel

Hi @artf, As you must know, at my company we are creating a product based on GrapesJS. We are trying to keep as close as possible from GrapesJS core. As developers we are trying our best to not create a fork from GrapesJS and keep contributing back to the repo. Now, we have a new feature to create and we would like to...

arthuralmeidap

You are the man!!! Thanks a lot!! I will try it !!!!

artf

Thanks Arthur, really appreciate your help. Seems like you're doing an awesome work, I think this feature could be a perfect candidate for a plugin :)

arthuralmeidap

I need to make some changes into some Models/Views inside GrapesJS. How can I achieve with plugins? Any ideas?

#498November 9, 2017by ryandeba3 answers
0 reactions

Ability to filter blocks

What do you think about the ability to filter the blocks panel? I have a situation where I may have hundreds of custom blocks, and having a built-in way for users to find a specific one would be very helpful. Here's a quick mockup of what I've got in mind: https://i.imgur.com/fGCNY3N.png. Typing in the input would onl...

artf

Thanks for the suggestion @ryandeba it'd be cool to have search functionality on all collections, probably even something like this, this will allow filtering also in other modules. I'd rather prefer to keep the UI side away from the core...

gpol4119

Any news regarding the above issue? Such functionality would be very helpful.

ryandeba

@giannis4119 I'm not actively working on this at this time, but I may get back to it at some point in the future.

#497November 8, 2017by suraj7403 answers
2 reactions

Asset manager

hi @artf , is it possible to replace current asset manager , from my custom one? I have created my own asset manager , i want to use that to upload images and all. is it possible?

artf

no @suraj740 target is the component model, you should add your custom open-assets command

suraj740

Thanks @artf , i was able to replace current asset manager to custom one. Thanks for giving that commands.

artf

Duplicate of #491

#495November 8, 2017by telliott223 answers
0 reactions

Highlighter and toolbar in the wrong place

Hi, From time to time, on my canvas the highlighter and toolbar appear in the wrong place. Is this a known bug? Do I have to manually refresh the canvas? It seems that the top css property on gjs-highlighter and gjs-badge aren't being calculated properly, they still line up horizontally just not vertically. Any ideas?...

artf

I'm aware of the toolbar "jump" when the content inside it changes (by adding or removing buttons) but not with the highlighter. Do you use the editor inside a scrolled page?

telliott22

Any way to stop the jumping when the content changes? Yes, the page is scrolled. Should I limit the height of the editor to the browsers height?

artf

Yeah, unfortunately, there is a bug which doesn't get a correct dimension of the scrolled page