GrapesJS Issues

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

3464 issues found

#3186December 11, 2020by kuhelbeher1 answer
0 reactions

BUG: Resize with percentage

Hello, there is a bug with resizing elements when their sizes are set with percentage: You can check this issue here

artf

Not a bug, I've just never handled properly resizing with the percentage 🙃 A PR would be welcome

#3185December 11, 2020by Stiggi1 answer
0 reactions

[QUESTION] How to get the models trait of a component?

Hi there, I added a new type "array" to the TraitManager. So I can add several sub traits. On one point I have to check the traits of the model. I do this with a construct like this: Is there an easier way to get the model of a component directly from the component? Best regards, Michael

Stiggi

simpler than I thought :) editor.getSelected().defaults.traits

#3184December 11, 2020by sathyanarayananaCES3 answers
1 reactions

[Question] Click issue on integrating grapesjs-style-bg plugin to the web builder

I am using GrapesJS version (0.16.27) and have integrated grapesjs-style-bg plugin to the editor. The functionality works perfectly fine. But on clicking the tabs on the background property, click issue arises. Immediately it toggles the tab. Especially it occurs when we select Gradient option, I have integrated the p...

artf

Thanks for the video of the issue, but it doesn't help in any way to solve it. If you're not able to create a reproducible demo, I can't help.

sathyanarayananaCES

Thank you @artf for taking a look at the video, will try to create a reproducible demo and attach it here.

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

#3183December 11, 2020by fzerman1 answer
0 reactions

QUESTION : How to create new custom manager?

Hi @artf, I am using and developing grapesjs for my project. I want to add new manager such that PackageManager. However, I couldn't find which object includes other managers. How can I add my custom manager to grapesjs?

fzerman

During this time, I tried to add my custom manager to grapesjs on npm. and However, I failed. This is my test code: When I build, I am taking a blank page. Please rescue me from this black hole. Thanks.

#3181December 11, 2020by congweibai1 answer
0 reactions

BUG: SelectorManager not return a String but an Object

Version:0.16.30 Are you able to reproduce the bug from the demo? [1 ] Yes What is the expected behavior?* SelectorManager.getState() is supposed to return a string according to https://grapesjs.com/docs/api/selector_manager.html#getstate Describe the bug detailed What is the current behavior? SelectorManager.getState(...

congweibai

Could you have a look at https://github.com/artf/grapesjs/pull/3182 is this fix this issue? Thanks

#3179December 10, 2020by TheEightArms3 answers
1 reactions

AssetManager seems to load assets from cache and doesnt update (Question)

Hi, i've been trying to integrate Grapes for last few weeks into my VueJs project, but i got a question for the AssetManagement. thats my simple assetManager configuration, for some reason it loads another Image i uploaded two weeks ago and doesnt update, no matter what i try. If i use assetManager.add('URL'), it says...

gixid192

@TheEightArms You can set storeManager to false in init function

TheEightArms

I found out, its loading its assets from the saved code and from the database, is there a possibility to tell the StoreManager not to load assets ? Thx

artf

You can also avoid returning assets from your endpoint (where you load components and styles)

#3177December 9, 2020by anatoli-dp2 answers
0 reactions

QUESTION/FEATURE REQUEST: Changing Selected Component Tooltip

Is there a way through the api to change the selected component tooltip or is that something that can only be done by editing the source? If so with the api please exlain as I am not bright enough to be able to effectively change the source and every time i try to make other changes I end up with errors when using the...

artf

Hi, when you define a new component, you can customize its toolbar You can also update the toolbar at runtime in this way: but won't be stored (eg. on a refresh of the page), so I always suggest to think more in a component-oriented way.

anatoli-dp

Thanks, that is a big help to some of the things i want to add for my own use. On Tue, Dec 29, 2020 at 1:01 PM Artur Arseniev <[email protected]> wrote: Closed #3177 <https://github.com/artf/grapesjs/issues/3177>. — You are receivin...

#3176December 9, 2020by mcottret3 answers
1 reactions

BUG: `setStyle` & `setComponents` options parameter not taken into account

Version: 0.16.30 Are you able to reproduce the bug from the demo? [x] Yes [ ] No Steps to reproduce:Open the consoleExecute editor.setComponents('', {avoidStore: true});Execute editor.setStyle('', {avoidStore: true});The "Stored ..." log still appears (see attached screenshot) What is the expected behavior? The option...

artf

Thanks @mcottret the fix is ready for the next release

artf

Unfortunately, due to the bad initial naming, avoidStore is intended to skip the UndoManager and not the Storage 😁 The good news, I had to introduce the new noCount option, in order to fix #3189, this will skip triggering the editor chang...

mcottret

Hello @artf ! I'm sorry to reopen this issue but the setStyle issue still seems to be present. Redoing the steps above, the "Stored ..." log still appears while calling setStyle with the noCount option. I'm seeing the fixed handleChanges h...

#3175December 9, 2020by mcottret1 answer
0 reactions

BUG: Selection & active RTE not cleared when component is removed programatically

Version: 0.16.30 Are you able to reproduce the bug from the demo? [x] Yes [ ] No Steps to reproduce:Select a text component in the demo's canvasThe selection box & RTE appearOpen the consoleExecute editor.setComponents('');The component is removed, but the selection box & RTE are still present (see attached screenshot...

artf

Thanks @mcottret for the report. I've handled this on my side, so it should be fixed in the next release, but as always, thanks for your willingness to help :)

#3174December 9, 2020by ThetripGr1 answer
1 reactions

Creating a new component type does not inherit the functions of it's parent type

Hello, I am trying to create a new common trait shared among all components by creating the following plugin on another plugin file I am also creating a new component type same way following the docs, called extendedText which uses the text type as it's basis. While the text type has the handleBgColorChange() as shown...

ThetripGr

nvm , I revisited the docs more carefully, I somehow missed this about extending parent functions